var PUM,PUM_Accessibility,PUM_Analytics,pm_cookie,pm_cookie_json,pm_remove_cookie;!function(r){"use strict";void 0===r.fn.on&&(r.fn.on=function(e,o,t){return this.delegate(o,e,t)}),void 0===r.fn.off&&(r.fn.off=function(e,o,t){return this.undelegate(o,e,t)}),void 0===r.fn.bindFirst&&(r.fn.bindFirst=function(e,o){var t,n,i=r(this);i.unbind(e,o),i.bind(e,o),(n=(t=r._data(i[0]).events)[e]).unshift(n.pop()),t[e]=n}),void 0===r.fn.outerHtml&&(r.fn.outerHtml=function(){var e=r(this).clone();return r("
").append(e).html()}),void 0===r.fn.isInViewport&&(r.fn.isInViewport=function(){var e=r(this).offset().top,o=e+r(this).outerHeight(),t=r(window).scrollTop(),n=t+r(window).height();return tt;t+=1)p.pm_remove_cookie(n[t].settings.name);"function"==typeof o&&o()},getClickTriggerSelector:function(e,o){var t=PUM.getPopup(e),n=PUM.getSettings(e),i=[".popmake-"+n.id,".popmake-"+decodeURIComponent(n.slug),'a[href$="#popmake-'+n.id+'"]'];return o.extra_selectors&&""!==o.extra_selectors&&i.push(o.extra_selectors),(i=pum.hooks.applyFilters("pum.trigger.click_open.selectors",i,o,t)).join(", ")},disableClickTriggers:function(e,o){if(e!==s)if(o!==s){var t=PUM.getClickTriggerSelector(e,o);p(t).removeClass("pum-trigger"),p(r).off("click.pumTrigger click.popmakeOpen",t)}else{var n=PUM.getSetting(e,"triggers",[]);if(n.length)for(var i=0;n.length>i;i++){-1!==pum.hooks.applyFilters("pum.disableClickTriggers.clickTriggerTypes",["click_open"]).indexOf(n[i].type)&&(t=PUM.getClickTriggerSelector(e,n[i].settings),p(t).removeClass("pum-trigger"),p(r).off("click.pumTrigger click.popmakeOpen",t))}}},actions:{stopIframeVideosPlaying:function(){var e=PUM.getPopup(this),o=e.popmake("getContainer");e.hasClass("pum-has-videos")||(o.find("iframe").filter('[src*="youtube"],[src*="vimeo"]').each(function(){var e=p(this),o=e.attr("src"),t=o.replace("autoplay=1","1=1");t!==o&&(o=t),e.prop("src",o)}),o.find("video").each(function(){this.pause()}))}}},p.fn.popmake=function(e){return p.fn.popmake.methods[e]?(p(r).trigger("pumMethodCall",arguments),p.fn.popmake.methods[e].apply(this,Array.prototype.slice.call(arguments,1))):"object"!=typeof e&&e?void(window.console&&console.warn("Method "+e+" does not exist on $.fn.popmake")):p.fn.popmake.methods.init.apply(this,arguments)},p.fn.popmake.methods={init:function(){return this.each(function(){var e,o=PUM.getPopup(this),t=o.popmake("getSettings");return t.theme_id<=0&&(t.theme_id=pum_vars.default_theme),t.disable_reposition!==s&&t.disable_reposition||p(window).on("resize",function(){(o.hasClass("pum-active")||o.find(".popmake.active").length)&&p.fn.popmake.utilities.throttle(setTimeout(function(){o.popmake("reposition")},25),500,!1)}),o.find(".pum-container").data("popmake",t),o.data("popmake",t).trigger("pumInit"),t.open_sound&&"none"!==t.open_sound&&((e="custom"!==t.open_sound?new Audio(pum_vars.pm_dir_url+"/assets/sounds/"+t.open_sound):new Audio(t.custom_sound)).addEventListener("canplaythrough",function(){o.data("popAudio",e)}),e.addEventListener("error",function(){console.warn("Error occurred when trying to load Popup opening sound.")}),e.load()),this})},getOverlay:function(){return PUM.getPopup(this)},getContainer:function(){return PUM.getPopup(this).find(".pum-container")},getTitle:function(){return PUM.getPopup(this).find(".pum-title")||null},getContent:function(){return PUM.getPopup(this).find(".pum-content")||null},getClose:function(){return PUM.getPopup(this).find(".pum-content + .pum-close")||null},getSettings:function(){var e=PUM.getPopup(this);return p.extend(!0,{},p.fn.popmake.defaults,e.data("popmake")||{},"object"==typeof pum_popups&&void 0!==pum_popups[e.attr("id")]?pum_popups[e.attr("id")]:{})},state:function(e){var o=PUM.getPopup(this);if(s!==e)switch(e){case"isOpen":return o.hasClass("pum-open")||o.popmake("getContainer").hasClass("active");case"isClosed":return!o.hasClass("pum-open")&&!o.popmake("getContainer").hasClass("active")}},open:function(e){var o=PUM.getPopup(this),t=o.popmake("getContainer"),n=o.popmake("getClose"),i=o.popmake("getSettings"),r=p("html");return o.trigger("pumBeforeOpen"),o.hasClass("preventOpen")||t.hasClass("preventOpen")?(console.log("prevented"),o.removeClass("preventOpen").removeClass("pum-active").trigger("pumOpenPrevented")):(i.stackable||o.popmake("close_all"),o.addClass("pum-active"),0e.length)&&(o=e.length);for(var t=0,n=new Array(o);t form").each(function(){var e=r(this),o=e.attr("id").replace("gform_",""),t=e.find("input.gforms-pum"),n=!!t.length&&JSON.parse(t.val());n&&"object"===i()(n)&&("object"===i()(n)&&void 0!==n.closedelay&&3<=n.closedelay.toString().length&&(n.closedelay=n.closedelay/1e3),s[o]=n)})})},"./node_modules/@babel/runtime/helpers/typeof.js":function(o,e){function t(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?o.exports=t=function(e){return typeof e}:o.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}o.exports=t}}),function(t){var n={};function i(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=t,i.c=n,i.d=function(e,o,t){i.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(o,e){if(1&e&&(o=i(o)),8&e)return o;if(4&e&&"object"==typeof o&&o&&o.__esModule)return o;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:o}),2&e&&"string"!=typeof o)for(var n in o)i.d(t,n,function(e){return o[e]}.bind(null,n));return t},i.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(o,"a",o),o},i.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},i.p="",i(i.s="./assets/js/src/integration/mc4wp.js")}({"./assets/js/src/integration/mc4wp.js":function(e,o){var r=window.jQuery;r(document).ready(function(){"undefined"!=typeof mc4wp&&mc4wp.forms.on("success",function(e,o){var t=r(e.element),n=e.id,i=r(".mc4wp-form-"+e.id).index(t)+1;window.PUM.integrations.formSubmission(t,{formProvider:"mc4wp",formId:n,formInstanceId:i,extras:{form:e,data:o}})})})}}),function(t){var n={};function i(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=t,i.c=n,i.d=function(e,o,t){i.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(o,e){if(1&e&&(o=i(o)),8&e)return o;if(4&e&&"object"==typeof o&&o&&o.__esModule)return o;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:o}),2&e&&"string"!=typeof o)for(var n in o)i.d(t,n,function(e){return o[e]}.bind(null,n));return t},i.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(o,"a",o),o},i.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},i.p="",i(i.s="./assets/js/src/integration/ninjaforms.js")}({"./assets/js/src/integration/ninjaforms.js":function(e,o,t){"use strict";t.r(o);var n=t("./node_modules/@babel/runtime/helpers/slicedToArray.js"),c=t.n(n),d=window.jQuery,i=!1;d(document).ready(function(){"undefined"!=typeof Marionette&&"undefined"!=typeof nfRadio&&!1===i&&new(i=Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("forms"),"submit:response",this.popupMaker)},popupMaker:function(e,o,t,n){var i=d("#nf-form-"+n+"-cont"),r=n.split("_"),s=c()(r,2),a=s[0],p=s[1],u=void 0===p?null:p,l={};e.errors.length||(window.PUM.integrations.formSubmission(i,{formProvider:"ninjaforms",formId:a,formInstanceId:u,extras:{response:e}}),void 0!==e.data.actions&&(l.openpopup=void 0!==e.data.actions.openpopup,l.openpopup_id=l.openpopup?parseInt(e.data.actions.openpopup):0,l.closepopup=void 0!==e.data.actions.closepopup,l.closedelay=l.closepopup?parseInt(e.data.actions.closepopup):0,l.closepopup&&e.data.actions.closedelay&&(l.closedelay=parseInt(e.data.actions.closedelay))),window.PUM.forms.success(i,l))}}))})},"./node_modules/@babel/runtime/helpers/arrayLikeToArray.js":function(e,o){e.exports=function(e,o){(null==o||o>e.length)&&(o=e.length);for(var t=0,n=new Array(o);t')}).on("pumAfterClose",window.PUM.actions.stopIframeVideosPlaying)}(jQuery),function(r,t){"use strict";var n,i,s,a="a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]",e=".pum:not(.pum-accessibility-disabled)";PUM_Accessibility={forceFocus:function(e){s&&s.length&&!s[0].contains(e.target)&&(e.stopPropagation(),PUM_Accessibility.setFocusToFirstItem())},trapTabKey:function(e){var o,t,n,i;9===e.keyCode&&(o=s.find(".pum-container *").filter(a).filter(":visible"),t=r(":focus"),n=o.length,i=o.index(t),e.shiftKey?0===i&&(o.get(n-1).focus(),e.preventDefault()):i===n-1&&(o.get(0).focus(),e.preventDefault()))},setFocusToFirstItem:function(){s.find(".pum-container *").filter(a).filter(":visible").filter(":not(.pum-close)").first().focus()}},r(t).on("pumInit",e,function(){PUM.getPopup(this).find("[tabindex]").each(function(){var e=r(this);e.data("tabindex",e.attr("tabindex")).prop("tabindex","0")})}).on("pumBeforeOpen",e,function(){var e=PUM.getPopup(this),o=r(":focus");e.has(o).length||(i=o),s=e.on("keydown.pum_accessibility",PUM_Accessibility.trapTabKey).attr("aria-hidden","false"),(n=r("body > *").filter(":visible").not(s)).attr("aria-hidden","true"),r(t).one("focusin.pum_accessibility",PUM_Accessibility.forceFocus),PUM_Accessibility.setFocusToFirstItem()}).on("pumAfterOpen",e,function(){}).on("pumBeforeClose",e,function(){}).on("pumAfterClose",e,function(){PUM.getPopup(this).off("keydown.pum_accessibility").attr("aria-hidden","true"),n&&(n.attr("aria-hidden","false"),n=null),void 0!==i&&i.length&&i.focus(),s=null,r(t).off("focusin.pum_accessibility")}).on("pumSetupClose",e,function(){}).on("pumOpenPrevented",e,function(){}).on("pumClosePrevented",e,function(){}).on("pumBeforeReposition",e,function(){})}(jQuery,document),function(r){"use strict";r.fn.popmake.last_open_trigger=null,r.fn.popmake.last_close_trigger=null,r.fn.popmake.conversion_trigger=null;var s=!(void 0===pum_vars.analytics_api||!pum_vars.analytics_api);PUM_Analytics={beacon:function(e,o){var t=new Image,n=s?pum_vars.analytics_api:pum_vars.ajaxurl,i={route:pum.hooks.applyFilters("pum.analyticsBeaconRoute","/"+pum_vars.analytics_route+"/"),data:pum.hooks.applyFilters("pum.AnalyticsBeaconData",r.extend(!0,{event:"open",pid:null,_cache:+new Date},e)),callback:"function"==typeof o?o:function(){}};s?n+=i.route:i.data.action="pum_analytics",n&&(r(t).on("error success load done",i.callback),t.src=n+"?"+r.param(i.data))}},void 0!==pum_vars.disable_tracking&&pum_vars.disable_tracking||(r(document).on("pumAfterOpen.core_analytics",".pum",function(){var e=PUM.getPopup(this),o={pid:parseInt(e.popmake("getSettings").id,10)||null};0o;o++){for(n=s.conditions[o],e=!1,t=0;n.length>t&&((!(i=p.extend({},{not_operand:!1},n[t])).not_operand&&r.popmake("checkCondition",i)||i.not_operand&&!r.popmake("checkCondition",i))&&(e=!0),p(this).trigger("pumCheckingCondition",[e,i]),!e);t++);e||(a=!1)}return a},checkCondition:function(e){var o=e.target||null;e.settings;return o?p.fn.popmake.conditions[o]?p.fn.popmake.conditions[o].apply(this,[e]):window.console?(console.warn("Condition "+o+" does not exist."),!0):void 0:(console.warn("Condition type not set."),!1)}}),p.fn.popmake.conditions={}}(jQuery,document),function(c){"use strict";function d(e,o,t){var n,i=new Date;if("undefined"!=typeof document){if(1o;o+=1)i.pm_cookie(e.cookie_name[o])!==n&&(t=!0);break;case"string":i.pm_cookie(e.cookie_name)!==n&&(t=!0)}return pum.hooks.doAction("popmake.checkCookies",e,t),t}}),i.fn.popmake.cookies=i.fn.popmake.cookies||{},i.extend(i.fn.popmake.cookies,{on_popup_open:function(e){var o=PUM.getPopup(this);o.on("pumAfterOpen",function(){o.popmake("setCookie",e)})},on_popup_close:function(e){var o=PUM.getPopup(this);o.on("pumBeforeClose",function(){o.popmake("setCookie",e)})},form_submission:function(t){var n=PUM.getPopup(this);t=i.extend({form:"",formInstanceId:"",only_in_popup:!1},t),PUM.hooks.addAction("pum.integration.form.success",function(e,o){t.form.length&&PUM.integrations.checkFormKeyMatches(t.form,t.formInstanceId,o)&&(t.only_in_popup&&o.popup.length&&o.popup.is(n)||!t.only_in_popup)&&n.popmake("setCookie",t)})},manual:function(e){var o=PUM.getPopup(this);o.on("pumSetCookie",function(){o.popmake("setCookie",e)})},form_success:function(e){var o=PUM.getPopup(this);o.on("pumFormSuccess",function(){o.popmake("setCookie",e)})},pum_sub_form_success:function(e){var o=PUM.getPopup(this);o.find("form.pum-sub-form").on("success",function(){o.popmake("setCookie",e)})},pum_sub_form_already_subscribed:function(e){var o=PUM.getPopup(this);o.find("form.pum-sub-form").on("success",function(){o.popmake("setCookie",e)})},ninja_form_success:function(e){return i.fn.popmake.cookies.form_success.apply(this,arguments)},cf7_form_success:function(e){return i.fn.popmake.cookies.form_success.apply(this,arguments)},gforms_form_success:function(e){return i.fn.popmake.cookies.form_success.apply(this,arguments)}}),i(e).ready(function(){var e=i(".pum-cookie");e.each(function(){var o=i(this),t=e.index(o),n=o.data("cookie-args");!o.data("only-onscreen")||o.isInViewport()&&o.is(":visible")?r(n):i(window).on("scroll.pum-cookie-"+t,i.fn.popmake.utilities.throttle(function(e){o.isInViewport()&&o.is(":visible")&&(r(n),i(window).off("scroll.pum-cookie-"+t))},100))})}).on("pumInit",".pum",function(){var e,o,t=PUM.getPopup(this),n=t.popmake("getSettings").cookies||[];if(n.length)for(o=0;o'),""!==o.attr("value")?t.insertAfter(o):o.append(t)),o.prop("disabled",!0),t.show(),e.addClass("pum-form--loading").removeClass("pum-form--errors")},afterAjax:function(e){var o=e.find('[type="submit"]'),t=o.find(".pum-form__loader");o.prop("disabled",!1),t.hide(),e.removeClass("pum-form--loading")},success:function(e,o){void 0!==o.message&&""!==o.message&&window.PUM.forms.messages.add(e,[{message:o.message}]),e.trigger("success",[o]),!e.data("noredirect")&&void 0!==e.data("redirect_enabled")&&o.redirect&&(""!==o.redirect?window.location=o.redirect:window.location.reload(!0))},errors:function(e,o){void 0!==o.errors&&o.errors.length&&(console.log(o.errors),window.PUM.forms.form.display_errors(e,o.errors),window.PUM.forms.messages.scroll_to_first(e),e.addClass("pum-form--errors").trigger("errors",[o]))},submit:function(e){var o=r(this),t=o.pumSerializeObject();e.preventDefault(),e.stopPropagation(),window.PUM.forms.form.beforeAjax(o),r.ajax({type:"POST",dataType:"json",url:pum_vars.ajaxurl,data:{action:"pum_form",values:t}}).always(function(){window.PUM.forms.form.afterAjax(o)}).done(function(e){window.PUM.forms.form.responseHandler(o,e)}).error(function(e,o,t){console.log("Error: type of "+o+" with message of "+t)})}},messages:{add:function(e,o,t){var n=e.find(".pum-form__messages"),i=0;if(t=t||"success",o=o||[],!n.length)switch(n=r('
').hide(),pum_vars.message_position){case"bottom":e.append(n.addClass("pum-form__messages--bottom"));break;case"top":e.prepend(n.addClass("pum-form__messages--top"))}if(0<=["bottom","top"].indexOf(pum_vars.message_position))for(;o.length>i;i++)this.add_message(n,o[i].message,t);else for(;o.length>i;i++)void 0!==o[i].field?this.add_field_error(e,o[i]):this.add_message(n,o[i].message,t);n.is(":hidden")&&r(".pum-form__message",n).length&&n.slideDown()},add_message:function(e,o,t){var n=r('

').html(o);t=t||"success",n.addClass("pum-form__message--"+t),e.append(n),e.is(":visible")&&n.hide().slideDown()},add_field_error:function(e,o){var t=r('[name="'+o.field+'"]',e).parents(".pum-form__field").addClass("pum-form__field--error");this.add_message(t,o.message,"error")},clear_all:function(e,o){var t=e.find(".pum-form__messages"),n=t.find(".pum-form__message"),i=e.find(".pum-form__field.pum-form__field--error");o=o||!1,t.length&&n.slideUp("fast",function(){r(this).remove(),o&&t.hide()}),i.length&&i.removeClass("pum-form__field--error").find("p.pum-form__message").remove()},scroll_to_first:function(e){window.PUM.utilities.scrollTo(r(".pum-form__field.pum-form__field--error",e).eq(0))}},success:function(e,o){var t,n,i;(o=r.extend({},s,o))&&(t=PUM.getPopup(e),n={},i=function(){o.openpopup&&PUM.getPopup(o.openpopup_id).length?PUM.open(o.openpopup_id):o.redirect_enabled&&(""!==o.redirect?window.location=o.redirect:window.location.reload(!0))},t.length&&(t.trigger("pumFormSuccess"),o.cookie&&(n=r.extend({name:"pum-"+PUM.getSetting(t,"id"),expires:"+1 year"},"object"==typeof o.cookie?o.cookie:{}),PUM.setCookie(t,n))),t.length&&o.closepopup?setTimeout(function(){t.popmake("close",i)},1e3*parseInt(o.closedelay)):i())}})}(jQuery),function(e){"use strict";e.pum=e.pum||{},e.pum.hooks=e.pum.hooks||new function(){var t=Array.prototype.slice,i={removeFilter:function(e,o){"string"==typeof e&&n("filters",e,o);return i},applyFilters:function(){var e=t.call(arguments),o=e.shift();return"string"!=typeof o?i:s("filters",o,e)},addFilter:function(e,o,t,n){"string"==typeof e&&"function"==typeof o&&(t=parseInt(t||10,10),r("filters",e,o,t,n));return i},removeAction:function(e,o){"string"==typeof e&&n("actions",e,o);return i},doAction:function(){var e=t.call(arguments),o=e.shift();"string"==typeof o&&s("actions",o,e);return i},addAction:function(e,o,t,n){"string"==typeof e&&"function"==typeof o&&(t=parseInt(t||10,10),r("actions",e,o,t,n));return i}},a={actions:{},filters:{}};function n(e,o,t,n){var i,r,s;if(a[e][o])if(t)if(i=a[e][o],n)for(s=i.length;s--;)(r=i[s]).callback===t&&r.context===n&&i.splice(s,1);else for(s=i.length;s--;)i[s].callback===t&&i.splice(s,1);else a[e][o]=[]}function r(e,o,t,n,i){var r={callback:t,priority:n,context:i},s=(s=a[e][o])?(s.push(r),function(e){for(var o,t,n,i=1,r=e.length;io.priority;)e[t]=e[t-1],--t;e[t]=o}return e}(s)):[r];a[e][o]=s}function s(e,o,t){var n,i,r=a[e][o];if(!r)return"filters"===e&&t[0];if(i=r.length,"filters"===e)for(n=0;n>>0;if(0==t)return-1;var n=0;if(0 ")},strtotime:function(e,o){var t,n,i,r,l,c,d,s,a,p;if(!e)return!1;if((n=(e=e.replace(/^\s+|\s+$/g,"").replace(/\s{2,}/g," ").replace(/[\t\r\n]/g,"").toLowerCase()).match(/^(\d{1,4})([\-\.\/\:])(\d{1,2})([\-\.\/\:])(\d{1,4})(?:\s(\d{1,2}):(\d{2})?:?(\d{2})?)?(?:\s([A-Z]+)?)?$/))&&n[2]===n[4])if(1901=768){var d=jQuery(this).attr("data-min-height")||"";""!=d&&jQuery(this).css("min-height",d)}else jQuery(this).css("min-height","initial")})}jQuery(window).load(function(a){info_box_set_auto_height()}),jQuery(document).ready(function(a){info_box_set_auto_height(),jQuery(window).resize(function(a){info_box_set_auto_height()})}); window.addComment=function(v){var I,C,h,E=v.document,b={commentReplyClass:"comment-reply-link",commentReplyTitleId:"reply-title",cancelReplyId:"cancel-comment-reply-link",commentFormId:"commentform",temporaryFormId:"wp-temp-form-div",parentIdFieldId:"comment_parent",postIdFieldId:"comment_post_ID"},e=v.MutationObserver||v.WebKitMutationObserver||v.MozMutationObserver,r="querySelector"in E&&"addEventListener"in v,n=!!E.documentElement.dataset;function t(){d(),e&&new e(o).observe(E.body,{childList:!0,subtree:!0})}function d(e){if(r&&(I=g(b.cancelReplyId),C=g(b.commentFormId),I)){I.addEventListener("touchstart",l),I.addEventListener("click",l);var t=function(e){if((e.metaKey||e.ctrlKey)&&13===e.keyCode)return C.removeEventListener("keydown",t),e.preventDefault(),C.submit.click(),!1};C&&C.addEventListener("keydown",t);for(var n,d=function(e){var t=b.commentReplyClass;e&&e.childNodes||(e=E);t=E.getElementsByClassName?e.getElementsByClassName(t):e.querySelectorAll("."+t);return t}(e),o=0,i=d.length;o1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var o=window.document.documentElement;return(window.document.scrollingElement||o)[t]}return e[t]}function s(e,t){var n="x"===t?"Left":"Top",o="Left"===n?"Right":"Bottom";return+e["border"+n+"Width"].split("px")[0]+ +e["border"+o+"Width"].split("px")[0]}function p(e,t,n,o){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],U()?n["offset"+e]+o["margin"+("Height"===e?"Top":"Left")]+o["margin"+("Height"===e?"Bottom":"Right")]:0)}function l(){var e=window.document.body,t=window.document.documentElement,n=U()&&window.getComputedStyle(t);return{height:p("Height",e,t,n),width:p("Width",e,t,n)}}function d(e){return z({},e,{right:e.left+e.width,bottom:e.top+e.height})}function u(e){var n={};if(U())try{n=e.getBoundingClientRect();var o=a(e,"top"),r=a(e,"left");n.top+=o,n.left+=r,n.bottom+=o,n.right+=r}catch(e){}else n=e.getBoundingClientRect();var i={left:n.left,top:n.top,width:n.right-n.left,height:n.bottom-n.top},f="HTML"===e.nodeName?l():{},p=f.width||e.clientWidth||i.right-i.left,u=f.height||e.clientHeight||i.bottom-i.top,c=e.offsetWidth-p,h=e.offsetHeight-u;if(c||h){var m=t(e);c-=s(m,"x"),h-=s(m,"y"),i.width-=c,i.height-=h}return d(i)}function c(e,n){var r=U(),i="HTML"===n.nodeName,f=u(e),s=u(n),p=o(e),l=t(n),c=+l.borderTopWidth.split("px")[0],h=+l.borderLeftWidth.split("px")[0],m=d({top:f.top-s.top-c,left:f.left-s.left-h,width:f.width,height:f.height});if(m.marginTop=0,m.marginLeft=0,!r&&i){var g=+l.marginTop.split("px")[0],v=+l.marginLeft.split("px")[0];m.top-=c-g,m.bottom-=c-g,m.left-=h-v,m.right-=h-v,m.marginTop=g,m.marginLeft=v}return(r?n.contains(p):n===p&&"BODY"!==p.nodeName)&&(m=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=a(t,"top"),r=a(t,"left"),i=n?-1:1;return e.top+=o*i,e.bottom+=o*i,e.left+=r*i,e.right+=r*i,e}(m,n)),m}function h(e){var o=e.nodeName;return"BODY"!==o&&"HTML"!==o&&("fixed"===t(e,"position")||h(n(e)))}function m(e,t,r,i){var s={top:0,left:0},p=f(e,t);if("viewport"===i)s=function(e){var t=window.document.documentElement,n=c(e,t),o=Math.max(t.clientWidth,window.innerWidth||0),r=Math.max(t.clientHeight,window.innerHeight||0),i=a(t),f=a(t,"left");return d({top:i-n.top+n.marginTop,left:f-n.left+n.marginLeft,width:o,height:r})}(p);else{var u=void 0;"scrollParent"===i?"BODY"===(u=o(n(e))).nodeName&&(u=window.document.documentElement):u="window"===i?window.document.documentElement:i;var m=c(u,p);if("HTML"!==u.nodeName||h(p))s=m;else{var g=l(),v=g.height,b=g.width;s.top+=m.top-m.marginTop,s.bottom=v+m.top,s.left+=m.left-m.marginLeft,s.right=b+m.left}}return s.left+=r,s.top+=r,s.right-=r,s.bottom-=r,s}function g(e,t,n,o,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var f=m(n,o,i,r),a={top:{width:f.width,height:t.top-f.top},right:{width:f.right-t.right,height:f.height},bottom:{width:f.width,height:f.bottom-t.bottom},left:{width:t.left-f.left,height:f.height}},s=Object.keys(a).map(function(e){return z({key:e},a[e],{area:function(e){return e.width*e.height}(a[e])})}).sort(function(e,t){return t.area-e.area}),p=s.filter(function(e){var t=e.width,o=e.height;return t>=n.clientWidth&&o>=n.clientHeight}),l=p.length>0?p[0].key:s[0].key,d=e.split("-")[1];return l+(d?"-"+d:"")}function v(e,t,n){return c(n,f(t,n))}function b(e){var t=window.getComputedStyle(e),n=parseFloat(t.marginTop)+parseFloat(t.marginBottom),o=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:e.offsetWidth+o,height:e.offsetHeight+n}}function w(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function y(e,t,n){n=n.split("-")[0];var o=b(e),r={width:o.width,height:o.height},i=-1!==["right","left"].indexOf(n),f=i?"top":"left",a=i?"left":"top",s=i?"height":"width",p=i?"width":"height";return r[f]=t[f]+t[s]/2-o[s]/2,r[a]=n===a?t[a]-o[p]:t[w(a)],r}function O(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function E(t,n,o){return(void 0===o?t:t.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var o=O(e,function(e){return e[t]===n});return e.indexOf(o)}(t,"name",o))).forEach(function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var o=t.function||t.fn;t.enabled&&e(o)&&(n.offsets.popper=d(n.offsets.popper),n.offsets.reference=d(n.offsets.reference),n=o(n,t))}),n}function x(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function L(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),o=0;o1&&void 0!==arguments[1]&&arguments[1],n=V.indexOf(e),o=V.slice(n+1).concat(V.slice(0,n));return t?o.reverse():o}function B(e,t,n,o){var r=[0,0],i=-1!==["right","left"].indexOf(o),f=e.split(/(\+|\-)/).map(function(e){return e.trim()}),a=f.indexOf(O(f,function(e){return-1!==e.search(/,|\s/)}));f[a]&&-1===f[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var s=/\s*,\s*|\s+/,p=-1!==a?[f.slice(0,a).concat([f[a].split(s)[0]]),[f[a].split(s)[1]].concat(f.slice(a+1))]:[f];return(p=p.map(function(e,o){var r=(1===o?!i:i)?"height":"width",f=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,f=!0,e):f?(e[e.length-1]+=t,f=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,o){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+r[1],f=r[2];if(!i)return e;if(0===f.indexOf("%")){var a=void 0;switch(f){case"%p":a=n;break;case"%":case"%r":default:a=o}return d(a)[t]/100*i}if("vh"===f||"vw"===f)return("vh"===f?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(e,r,t,n)})})).forEach(function(e,t){e.forEach(function(n,o){N(n)&&(r[t]+=n*("-"===e[o-1]?-1:1))})}),r}for(var D=["native code","[object MutationObserverConstructor]"],H="undefined"!=typeof window,P=["Edge","Trident","Firefox"],j=0,I=0;I=0){j=1;break}var F=H&&function(e){return D.some(function(t){return(e||"").toString().indexOf(t)>-1})}(window.MutationObserver)?function(e){var t=!1,n=0,o=document.createElement("span");return new MutationObserver(function(){e(),t=!1}).observe(o,{attributes:!0}),function(){t||(t=!0,o.setAttribute("x-index",n),n+=1)}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},j))}},R=void 0,U=function(){return void 0===R&&(R=-1!==navigator.appVersion.indexOf("MSIE 10")),R},Y=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},q=function(){function e(e,t){for(var n=0;no[e]&&!t.escapeWithReference&&(r=Math.min(f[n],o[e]-("right"===e?f.width:f.height))),K({},n,r)}};return i.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";f=z({},f,a[t](e))}),e.offsets.popper=f,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,o=t.reference,r=e.placement.split("-")[0],i=Math.floor,f=-1!==["top","bottom"].indexOf(r),a=f?"right":"bottom",s=f?"left":"top",p=f?"width":"height";return n[a]i(o[a])&&(e.offsets.popper[s]=i(o[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,n){if(!W(e.instance.modifiers,"arrow","keepTogether"))return e;var o=n.element;if("string"==typeof o){if(!(o=e.instance.popper.querySelector(o)))return e}else if(!e.instance.popper.contains(o))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],i=e.offsets,f=i.popper,a=i.reference,s=-1!==["left","right"].indexOf(r),p=s?"height":"width",l=s?"Top":"Left",u=l.toLowerCase(),c=s?"left":"top",h=s?"bottom":"right",m=b(o)[p];a[h]-mf[h]&&(e.offsets.popper[u]+=a[u]+m-f[h]);var g=a[u]+a[p]/2-m/2,v=t(e.instance.popper,"margin"+l).replace("px",""),w=g-d(e.offsets.popper)[u]-v;return w=Math.max(Math.min(f[p]-m,w),0),e.arrowElement=o,e.offsets.arrow={},e.offsets.arrow[u]=Math.round(w),e.offsets.arrow[c]="",e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(x(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=m(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement),o=e.placement.split("-")[0],r=w(o),i=e.placement.split("-")[1]||"",f=[];switch(t.behavior){case _.FLIP:f=[o,r];break;case _.CLOCKWISE:f=A(o);break;case _.COUNTERCLOCKWISE:f=A(o,!0);break;default:f=t.behavior}return f.forEach(function(a,s){if(o!==a||f.length===s+1)return e;o=e.placement.split("-")[0],r=w(o);var p=e.offsets.popper,l=e.offsets.reference,d=Math.floor,u="left"===o&&d(p.right)>d(l.left)||"right"===o&&d(p.left)d(l.top)||"bottom"===o&&d(p.top)d(n.right),m=d(p.top)d(n.bottom),v="left"===o&&c||"right"===o&&h||"top"===o&&m||"bottom"===o&&g,b=-1!==["top","bottom"].indexOf(o),O=!!t.flipVariations&&(b&&"start"===i&&c||b&&"end"===i&&h||!b&&"start"===i&&m||!b&&"end"===i&&g);(u||v||O)&&(e.flipped=!0,(u||v)&&(o=f[s+1]),O&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=o+(i?"-"+i:""),e.offsets.popper=z({},e.offsets.popper,y(e.instance.popper,e.offsets.reference,e.placement)),e=E(e.instance.modifiers,e,"flip"))}),e},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],o=e.offsets,r=o.popper,i=o.reference,f=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return r[f?"left":"top"]=i[n]-(a?r[f?"width":"height"]:0),e.placement=w(t),e.offsets.popper=d(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!W(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=O(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};Y(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=F(this.update.bind(this)),this.options=z({},t.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=n.jquery?n[0]:n,this.popper=o.jquery?o[0]:o,this.options.modifiers={},Object.keys(z({},t.Defaults.modifiers,i.modifiers)).forEach(function(e){r.options.modifiers[e]=z({},t.Defaults.modifiers[e]||{},i.modifiers?i.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return z({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(t){t.enabled&&e(t.onLoad)&&t.onLoad(r.reference,r.popper,r.options,t,r.state)}),this.update();var f=this.options.eventsEnabled;f&&this.enableEventListeners(),this.state.eventsEnabled=f}return q(t,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=v(this.state,this.popper,this.reference),e.placement=g(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.offsets.popper=y(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position="absolute",e=E(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,x(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[L("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return M.call(this)}},{key:"disableEventListeners",value:function(){return C.call(this)}}]),t}();return J.Utils=("undefined"!=typeof window?window:global).PopperUtils,J.placements=G,J.Defaults=X,J}); (function (global, factory){ typeof exports==='object'&&typeof module!=='undefined' ? factory(exports, require('jquery'), require('popper.js')) : typeof define==='function'&&define.amd ? define(['exports', 'jquery', 'popper.js'], factory) : (factory((global.bootstrap={}),global.jQuery,global.Popper)); }(this, (function (exports,$,Popper){ 'use strict'; $=$&&$.hasOwnProperty('default') ? $['default']:$; Popper=Popper&&Popper.hasOwnProperty('default') ? Popper['default']:Popper; function _defineProperties(target, props){ for (var i=0; i < props.length; i++){ var descriptor=props[i]; descriptor.enumerable=descriptor.enumerable||false; descriptor.configurable=true; if("value" in descriptor) descriptor.writable=true; Object.defineProperty(target, descriptor.key, descriptor); }} function _createClass(Constructor, protoProps, staticProps){ if(protoProps) _defineProperties(Constructor.prototype, protoProps); if(staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); }else{ obj[key]=value; } return obj; } function _objectSpread(target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]!=null ? arguments[i]:{}; var ownKeys=Object.keys(source); if(typeof Object.getOwnPropertySymbols==='function'){ ownKeys=ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym){ return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key){ _defineProperty(target, key, source[key]); }); } return target; } function _inheritsLoose(subClass, superClass){ subClass.prototype=Object.create(superClass.prototype); subClass.prototype.constructor=subClass; subClass.__proto__=superClass; } var Util=function ($$$1){ var TRANSITION_END='transitionend'; var MAX_UID=1000000; var MILLISECONDS_MULTIPLIER=1000; function toType(obj){ return {}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase(); } function getSpecialTransitionEndEvent(){ return { bindType: TRANSITION_END, delegateType: TRANSITION_END, handle: function handle(event){ if($$$1(event.target).is(this)){ return event.handleObj.handler.apply(this, arguments); } return undefined; }};} function transitionEndEmulator(duration){ var _this=this; var called=false; $$$1(this).one(Util.TRANSITION_END, function (){ called=true; }); setTimeout(function (){ if(!called){ Util.triggerTransitionEnd(_this); }}, duration); return this; } function setTransitionEndSupport(){ $$$1.fn.emulateTransitionEnd=transitionEndEmulator; $$$1.event.special[Util.TRANSITION_END]=getSpecialTransitionEndEvent(); } var Util={ TRANSITION_END: 'bsTransitionEnd', getUID: function getUID(prefix){ do { prefix +=~~(Math.random() * MAX_UID); // "~~" acts like a faster Math.floor() here } while (document.getElementById(prefix)); return prefix; }, getSelectorFromElement: function getSelectorFromElement(element){ var selector=element.getAttribute('data-target'); if(!selector||selector==='#'){ selector=element.getAttribute('href')||''; } try { return document.querySelector(selector) ? selector:null; } catch (err){ return null; }}, getTransitionDurationFromElement: function getTransitionDurationFromElement(element){ if(!element){ return 0; } var transitionDuration=$$$1(element).css('transition-duration'); var floatTransitionDuration=parseFloat(transitionDuration); if(!floatTransitionDuration){ return 0; } transitionDuration=transitionDuration.split(',')[0]; return parseFloat(transitionDuration) * MILLISECONDS_MULTIPLIER; }, reflow: function reflow(element){ return element.offsetHeight; }, triggerTransitionEnd: function triggerTransitionEnd(element){ $$$1(element).trigger(TRANSITION_END); }, supportsTransitionEnd: function supportsTransitionEnd(){ return Boolean(TRANSITION_END); }, isElement: function isElement(obj){ return (obj[0]||obj).nodeType; }, typeCheckConfig: function typeCheckConfig(componentName, config, configTypes){ for (var property in configTypes){ if(Object.prototype.hasOwnProperty.call(configTypes, property)){ var expectedTypes=configTypes[property]; var value=config[property]; var valueType=value&&Util.isElement(value) ? 'element':toType(value); if(!new RegExp(expectedTypes).test(valueType)){ throw new Error(componentName.toUpperCase() + ": " + ("Option \"" + property + "\" provided type \"" + valueType + "\" ") + ("but expected type \"" + expectedTypes + "\".")); }} }} }; setTransitionEndSupport(); return Util; }($); var Alert=function ($$$1){ var NAME='alert'; var VERSION='4.1.3'; var DATA_KEY='bs.alert'; var EVENT_KEY="." + DATA_KEY; var DATA_API_KEY='.data-api'; var JQUERY_NO_CONFLICT=$$$1.fn[NAME]; var Selector={ DISMISS: '[data-dismiss="alert"]' }; var Event={ CLOSE: "close" + EVENT_KEY, CLOSED: "closed" + EVENT_KEY, CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY }; var ClassName={ ALERT: 'alert', FADE: 'fade', SHOW: 'show' }; var Alert = function (){ function Alert(element){ this._element=element; } var _proto=Alert.prototype; _proto.close=function close(element){ var rootElement=this._element; if(element){ rootElement=this._getRootElement(element); } var customEvent=this._triggerCloseEvent(rootElement); if(customEvent.isDefaultPrevented()){ return; } this._removeElement(rootElement); }; _proto.dispose=function dispose(){ $$$1.removeData(this._element, DATA_KEY); this._element=null; }; _proto._getRootElement=function _getRootElement(element){ var selector=Util.getSelectorFromElement(element); var parent=false; if(selector){ parent=document.querySelector(selector); } if(!parent){ parent=$$$1(element).closest("." + ClassName.ALERT)[0]; } return parent; }; _proto._triggerCloseEvent=function _triggerCloseEvent(element){ var closeEvent=$$$1.Event(Event.CLOSE); $$$1(element).trigger(closeEvent); return closeEvent; }; _proto._removeElement=function _removeElement(element){ var _this=this; $$$1(element).removeClass(ClassName.SHOW); if(!$$$1(element).hasClass(ClassName.FADE)){ this._destroyElement(element); return; } var transitionDuration=Util.getTransitionDurationFromElement(element); $$$1(element).one(Util.TRANSITION_END, function (event){ return _this._destroyElement(element, event); }).emulateTransitionEnd(transitionDuration); }; _proto._destroyElement=function _destroyElement(element){ $$$1(element).detach().trigger(Event.CLOSED).remove(); }; Alert._jQueryInterface=function _jQueryInterface(config){ return this.each(function (){ var $element=$$$1(this); var data=$element.data(DATA_KEY); if(!data){ data=new Alert(this); $element.data(DATA_KEY, data); } if(config==='close'){ data[config](this); }}); }; Alert._handleDismiss=function _handleDismiss(alertInstance){ return function (event){ if(event){ event.preventDefault(); } alertInstance.close(this); };}; _createClass(Alert, null, [{ key: "VERSION", get: function get(){ return VERSION; }}]); return Alert; }(); $$$1(document).on(Event.CLICK_DATA_API, Selector.DISMISS, Alert._handleDismiss(new Alert())); $$$1.fn[NAME]=Alert._jQueryInterface; $$$1.fn[NAME].Constructor=Alert; $$$1.fn[NAME].noConflict=function (){ $$$1.fn[NAME]=JQUERY_NO_CONFLICT; return Alert._jQueryInterface; }; return Alert; }($); var Button=function ($$$1){ var NAME='button'; var VERSION='4.1.3'; var DATA_KEY='bs.button'; var EVENT_KEY="." + DATA_KEY; var DATA_API_KEY='.data-api'; var JQUERY_NO_CONFLICT=$$$1.fn[NAME]; var ClassName={ ACTIVE: 'active', BUTTON: 'btn', FOCUS: 'focus' }; var Selector={ DATA_TOGGLE_CARROT: '[data-toggle^="button"]', DATA_TOGGLE: '[data-toggle="buttons"]', INPUT: 'input', ACTIVE: '.active', BUTTON: '.btn' }; var Event={ CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY, FOCUS_BLUR_DATA_API: "focus" + EVENT_KEY + DATA_API_KEY + " " + ("blur" + EVENT_KEY + DATA_API_KEY) }; var Button = function (){ function Button(element){ this._element=element; } var _proto=Button.prototype; _proto.toggle=function toggle(){ var triggerChangeEvent=true; var addAriaPressed=true; var rootElement=$$$1(this._element).closest(Selector.DATA_TOGGLE)[0]; if(rootElement){ var input=this._element.querySelector(Selector.INPUT); if(input){ if(input.type==='radio'){ if(input.checked&&this._element.classList.contains(ClassName.ACTIVE)){ triggerChangeEvent=false; }else{ var activeElement=rootElement.querySelector(Selector.ACTIVE); if(activeElement){ $$$1(activeElement).removeClass(ClassName.ACTIVE); }} } if(triggerChangeEvent){ if(input.hasAttribute('disabled')||rootElement.hasAttribute('disabled')||input.classList.contains('disabled')||rootElement.classList.contains('disabled')){ return; } input.checked = !this._element.classList.contains(ClassName.ACTIVE); $$$1(input).trigger('change'); } input.focus(); addAriaPressed=false; }} if(addAriaPressed){ this._element.setAttribute('aria-pressed', !this._element.classList.contains(ClassName.ACTIVE)); } if(triggerChangeEvent){ $$$1(this._element).toggleClass(ClassName.ACTIVE); }}; _proto.dispose=function dispose(){ $$$1.removeData(this._element, DATA_KEY); this._element=null; }; Button._jQueryInterface=function _jQueryInterface(config){ return this.each(function (){ var data=$$$1(this).data(DATA_KEY); if(!data){ data=new Button(this); $$$1(this).data(DATA_KEY, data); } if(config==='toggle'){ data[config](); }}); }; _createClass(Button, null, [{ key: "VERSION", get: function get(){ return VERSION; }}]); return Button; }(); $$$1(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE_CARROT, function (event){ event.preventDefault(); var button=event.target; if(!$$$1(button).hasClass(ClassName.BUTTON)){ button=$$$1(button).closest(Selector.BUTTON); } Button._jQueryInterface.call($$$1(button), 'toggle'); }).on(Event.FOCUS_BLUR_DATA_API, Selector.DATA_TOGGLE_CARROT, function (event){ var button=$$$1(event.target).closest(Selector.BUTTON)[0]; $$$1(button).toggleClass(ClassName.FOCUS, /^focus(in)?$/.test(event.type)); }); $$$1.fn[NAME]=Button._jQueryInterface; $$$1.fn[NAME].Constructor=Button; $$$1.fn[NAME].noConflict=function (){ $$$1.fn[NAME]=JQUERY_NO_CONFLICT; return Button._jQueryInterface; }; return Button; }($); var Carousel=function ($$$1){ var NAME='carousel'; var VERSION='4.1.3'; var DATA_KEY='bs.carousel'; var EVENT_KEY="." + DATA_KEY; var DATA_API_KEY='.data-api'; var JQUERY_NO_CONFLICT=$$$1.fn[NAME]; var ARROW_LEFT_KEYCODE=37; var ARROW_RIGHT_KEYCODE=39; var TOUCHEVENT_COMPAT_WAIT=500; var Default={ interval: 5000, keyboard: true, slide: false, pause: 'hover', wrap: true }; var DefaultType={ interval: '(number|boolean)', keyboard: 'boolean', slide: '(boolean|string)', pause: '(string|boolean)', wrap: 'boolean' }; var Direction={ NEXT: 'next', PREV: 'prev', LEFT: 'left', RIGHT: 'right' }; var Event={ SLIDE: "slide" + EVENT_KEY, SLID: "slid" + EVENT_KEY, KEYDOWN: "keydown" + EVENT_KEY, MOUSEENTER: "mouseenter" + EVENT_KEY, MOUSELEAVE: "mouseleave" + EVENT_KEY, TOUCHEND: "touchend" + EVENT_KEY, LOAD_DATA_API: "load" + EVENT_KEY + DATA_API_KEY, CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY }; var ClassName={ CAROUSEL: 'carousel', ACTIVE: 'active', SLIDE: 'slide', RIGHT: 'carousel-item-right', LEFT: 'carousel-item-left', NEXT: 'carousel-item-next', PREV: 'carousel-item-prev', ITEM: 'carousel-item' }; var Selector={ ACTIVE: '.active', ACTIVE_ITEM: '.active.carousel-item', ITEM: '.carousel-item', NEXT_PREV: '.carousel-item-next, .carousel-item-prev', INDICATORS: '.carousel-indicators', DATA_SLIDE: '[data-slide], [data-slide-to]', DATA_RIDE: '[data-ride="carousel"]' }; var Carousel = function (){ function Carousel(element, config){ this._items=null; this._interval=null; this._activeElement=null; this._isPaused=false; this._isSliding=false; this.touchTimeout=null; this._config=this._getConfig(config); this._element=$$$1(element)[0]; this._indicatorsElement=this._element.querySelector(Selector.INDICATORS); this._addEventListeners(); } var _proto=Carousel.prototype; _proto.next=function next(){ if(!this._isSliding){ this._slide(Direction.NEXT); }}; _proto.nextWhenVisible=function nextWhenVisible(){ if(!document.hidden&&$$$1(this._element).is(':visible')&&$$$1(this._element).css('visibility')!=='hidden'){ this.next(); }}; _proto.prev=function prev(){ if(!this._isSliding){ this._slide(Direction.PREV); }}; _proto.pause=function pause(event){ if(!event){ this._isPaused=true; } if(this._element.querySelector(Selector.NEXT_PREV)){ Util.triggerTransitionEnd(this._element); this.cycle(true); } clearInterval(this._interval); this._interval=null; }; _proto.cycle=function cycle(event){ if(!event){ this._isPaused=false; } if(this._interval){ clearInterval(this._interval); this._interval=null; } if(this._config.interval&&!this._isPaused){ this._interval=setInterval((document.visibilityState ? this.nextWhenVisible:this.next).bind(this), this._config.interval); }}; _proto.to=function to(index){ var _this=this; this._activeElement=this._element.querySelector(Selector.ACTIVE_ITEM); var activeIndex=this._getItemIndex(this._activeElement); if(index > this._items.length - 1||index < 0){ return; } if(this._isSliding){ $$$1(this._element).one(Event.SLID, function (){ return _this.to(index); }); return; } if(activeIndex===index){ this.pause(); this.cycle(); return; } var direction=index > activeIndex ? Direction.NEXT:Direction.PREV; this._slide(direction, this._items[index]); }; _proto.dispose=function dispose(){ $$$1(this._element).off(EVENT_KEY); $$$1.removeData(this._element, DATA_KEY); this._items=null; this._config=null; this._element=null; this._interval=null; this._isPaused=null; this._isSliding=null; this._activeElement=null; this._indicatorsElement=null; }; _proto._getConfig=function _getConfig(config){ config=_objectSpread({}, Default, config); Util.typeCheckConfig(NAME, config, DefaultType); return config; }; _proto._addEventListeners=function _addEventListeners(){ var _this2=this; if(this._config.keyboard){ $$$1(this._element).on(Event.KEYDOWN, function (event){ return _this2._keydown(event); }); } if(this._config.pause==='hover'){ $$$1(this._element).on(Event.MOUSEENTER, function (event){ return _this2.pause(event); }).on(Event.MOUSELEAVE, function (event){ return _this2.cycle(event); }); if('ontouchstart' in document.documentElement){ $$$1(this._element).on(Event.TOUCHEND, function (){ _this2.pause(); if(_this2.touchTimeout){ clearTimeout(_this2.touchTimeout); } _this2.touchTimeout=setTimeout(function (event){ return _this2.cycle(event); }, TOUCHEVENT_COMPAT_WAIT + _this2._config.interval); }); }} }; _proto._keydown=function _keydown(event){ if(/input|textarea/i.test(event.target.tagName)){ return; } switch (event.which){ case ARROW_LEFT_KEYCODE: event.preventDefault(); this.prev(); break; case ARROW_RIGHT_KEYCODE: event.preventDefault(); this.next(); break; default: }}; _proto._getItemIndex=function _getItemIndex(element){ this._items=element&&element.parentNode ? [].slice.call(element.parentNode.querySelectorAll(Selector.ITEM)):[]; return this._items.indexOf(element); }; _proto._getItemByDirection=function _getItemByDirection(direction, activeElement){ var isNextDirection=direction===Direction.NEXT; var isPrevDirection=direction===Direction.PREV; var activeIndex=this._getItemIndex(activeElement); var lastItemIndex=this._items.length - 1; var isGoingToWrap=isPrevDirection&&activeIndex===0||isNextDirection&&activeIndex===lastItemIndex; if(isGoingToWrap&&!this._config.wrap){ return activeElement; } var delta=direction===Direction.PREV ? -1:1; var itemIndex=(activeIndex + delta) % this._items.length; return itemIndex===-1 ? this._items[this._items.length - 1]:this._items[itemIndex]; }; _proto._triggerSlideEvent=function _triggerSlideEvent(relatedTarget, eventDirectionName){ var targetIndex=this._getItemIndex(relatedTarget); var fromIndex=this._getItemIndex(this._element.querySelector(Selector.ACTIVE_ITEM)); var slideEvent=$$$1.Event(Event.SLIDE, { relatedTarget: relatedTarget, direction: eventDirectionName, from: fromIndex, to: targetIndex }); $$$1(this._element).trigger(slideEvent); return slideEvent; }; _proto._setActiveIndicatorElement=function _setActiveIndicatorElement(element){ if(this._indicatorsElement){ var indicators=[].slice.call(this._indicatorsElement.querySelectorAll(Selector.ACTIVE)); $$$1(indicators).removeClass(ClassName.ACTIVE); var nextIndicator=this._indicatorsElement.children[this._getItemIndex(element)]; if(nextIndicator){ $$$1(nextIndicator).addClass(ClassName.ACTIVE); }} }; _proto._slide=function _slide(direction, element){ var _this3=this; var activeElement=this._element.querySelector(Selector.ACTIVE_ITEM); var activeElementIndex=this._getItemIndex(activeElement); var nextElement=element||activeElement&&this._getItemByDirection(direction, activeElement); var nextElementIndex=this._getItemIndex(nextElement); var isCycling=Boolean(this._interval); var directionalClassName; var orderClassName; var eventDirectionName; if(direction===Direction.NEXT){ directionalClassName=ClassName.LEFT; orderClassName=ClassName.NEXT; eventDirectionName=Direction.LEFT; }else{ directionalClassName=ClassName.RIGHT; orderClassName=ClassName.PREV; eventDirectionName=Direction.RIGHT; } if(nextElement&&$$$1(nextElement).hasClass(ClassName.ACTIVE)){ this._isSliding=false; return; } var slideEvent=this._triggerSlideEvent(nextElement, eventDirectionName); if(slideEvent.isDefaultPrevented()){ return; } if(!activeElement||!nextElement){ return; } this._isSliding=true; if(isCycling){ this.pause(); } this._setActiveIndicatorElement(nextElement); var slidEvent=$$$1.Event(Event.SLID, { relatedTarget: nextElement, direction: eventDirectionName, from: activeElementIndex, to: nextElementIndex }); if($$$1(this._element).hasClass(ClassName.SLIDE)){ $$$1(nextElement).addClass(orderClassName); Util.reflow(nextElement); $$$1(activeElement).addClass(directionalClassName); $$$1(nextElement).addClass(directionalClassName); var transitionDuration=Util.getTransitionDurationFromElement(activeElement); $$$1(activeElement).one(Util.TRANSITION_END, function (){ $$$1(nextElement).removeClass(directionalClassName + " " + orderClassName).addClass(ClassName.ACTIVE); $$$1(activeElement).removeClass(ClassName.ACTIVE + " " + orderClassName + " " + directionalClassName); _this3._isSliding=false; setTimeout(function (){ return $$$1(_this3._element).trigger(slidEvent); }, 0); }).emulateTransitionEnd(transitionDuration); }else{ $$$1(activeElement).removeClass(ClassName.ACTIVE); $$$1(nextElement).addClass(ClassName.ACTIVE); this._isSliding=false; $$$1(this._element).trigger(slidEvent); } if(isCycling){ this.cycle(); }}; Carousel._jQueryInterface=function _jQueryInterface(config){ return this.each(function (){ var data=$$$1(this).data(DATA_KEY); var _config=_objectSpread({}, Default, $$$1(this).data()); if(typeof config==='object'){ _config=_objectSpread({}, _config, config); } var action=typeof config==='string' ? config:_config.slide; if(!data){ data=new Carousel(this, _config); $$$1(this).data(DATA_KEY, data); } if(typeof config==='number'){ data.to(config); }else if(typeof action==='string'){ if(typeof data[action]==='undefined'){ throw new TypeError("No method named \"" + action + "\""); } data[action](); }else if(_config.interval){ data.pause(); data.cycle(); }}); }; Carousel._dataApiClickHandler=function _dataApiClickHandler(event){ var selector=Util.getSelectorFromElement(this); if(!selector){ return; } var target=$$$1(selector)[0]; if(!target||!$$$1(target).hasClass(ClassName.CAROUSEL)){ return; } var config=_objectSpread({}, $$$1(target).data(), $$$1(this).data()); var slideIndex=this.getAttribute('data-slide-to'); if(slideIndex){ config.interval=false; } Carousel._jQueryInterface.call($$$1(target), config); if(slideIndex){ $$$1(target).data(DATA_KEY).to(slideIndex); } event.preventDefault(); }; _createClass(Carousel, null, [{ key: "VERSION", get: function get(){ return VERSION; }}, { key: "Default", get: function get(){ return Default; }}]); return Carousel; }(); $$$1(document).on(Event.CLICK_DATA_API, Selector.DATA_SLIDE, Carousel._dataApiClickHandler); $$$1(window).on(Event.LOAD_DATA_API, function (){ var carousels=[].slice.call(document.querySelectorAll(Selector.DATA_RIDE)); for (var i=0, len=carousels.length; i < len; i++){ var $carousel=$$$1(carousels[i]); Carousel._jQueryInterface.call($carousel, $carousel.data()); }}); $$$1.fn[NAME]=Carousel._jQueryInterface; $$$1.fn[NAME].Constructor=Carousel; $$$1.fn[NAME].noConflict=function (){ $$$1.fn[NAME]=JQUERY_NO_CONFLICT; return Carousel._jQueryInterface; }; return Carousel; }($); var Collapse=function ($$$1){ var NAME='collapse'; var VERSION='4.1.3'; var DATA_KEY='bs.collapse'; var EVENT_KEY="." + DATA_KEY; var DATA_API_KEY='.data-api'; var JQUERY_NO_CONFLICT=$$$1.fn[NAME]; var Default={ toggle: true, parent: '' }; var DefaultType={ toggle: 'boolean', parent: '(string|element)' }; var Event={ SHOW: "show" + EVENT_KEY, SHOWN: "shown" + EVENT_KEY, HIDE: "hide" + EVENT_KEY, HIDDEN: "hidden" + EVENT_KEY, CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY }; var ClassName={ SHOW: 'show', COLLAPSE: 'collapse', COLLAPSING: 'collapsing', COLLAPSED: 'collapsed' }; var Dimension={ WIDTH: 'width', HEIGHT: 'height' }; var Selector={ ACTIVES: '.show, .collapsing', DATA_TOGGLE: '[data-toggle="collapse"]' }; var Collapse = function (){ function Collapse(element, config){ this._isTransitioning=false; this._element=element; this._config=this._getConfig(config); this._triggerArray=$$$1.makeArray(document.querySelectorAll("[data-toggle=\"collapse\"][href=\"#" + element.id + "\"]," + ("[data-toggle=\"collapse\"][data-target=\"#" + element.id + "\"]"))); var toggleList=[].slice.call(document.querySelectorAll(Selector.DATA_TOGGLE)); for (var i=0, len=toggleList.length; i < len; i++){ var elem=toggleList[i]; var selector=Util.getSelectorFromElement(elem); var filterElement=[].slice.call(document.querySelectorAll(selector)).filter(function (foundElem){ return foundElem===element; }); if(selector!==null&&filterElement.length > 0){ this._selector=selector; this._triggerArray.push(elem); }} this._parent=this._config.parent ? this._getParent():null; if(!this._config.parent){ this._addAriaAndCollapsedClass(this._element, this._triggerArray); } if(this._config.toggle){ this.toggle(); }} var _proto=Collapse.prototype; _proto.toggle=function toggle(){ if($$$1(this._element).hasClass(ClassName.SHOW)){ this.hide(); }else{ this.show(); }}; _proto.show=function show(){ var _this=this; if(this._isTransitioning||$$$1(this._element).hasClass(ClassName.SHOW)){ return; } var actives; var activesData; if(this._parent){ actives=[].slice.call(this._parent.querySelectorAll(Selector.ACTIVES)).filter(function (elem){ return elem.getAttribute('data-parent')===_this._config.parent; }); if(actives.length===0){ actives=null; }} if(actives){ activesData=$$$1(actives).not(this._selector).data(DATA_KEY); if(activesData&&activesData._isTransitioning){ return; }} var startEvent=$$$1.Event(Event.SHOW); $$$1(this._element).trigger(startEvent); if(startEvent.isDefaultPrevented()){ return; } if(actives){ Collapse._jQueryInterface.call($$$1(actives).not(this._selector), 'hide'); if(!activesData){ $$$1(actives).data(DATA_KEY, null); }} var dimension=this._getDimension(); $$$1(this._element).removeClass(ClassName.COLLAPSE).addClass(ClassName.COLLAPSING); this._element.style[dimension]=0; if(this._triggerArray.length){ $$$1(this._triggerArray).removeClass(ClassName.COLLAPSED).attr('aria-expanded', true); } this.setTransitioning(true); var complete=function complete(){ $$$1(_this._element).removeClass(ClassName.COLLAPSING).addClass(ClassName.COLLAPSE).addClass(ClassName.SHOW); _this._element.style[dimension]=''; _this.setTransitioning(false); $$$1(_this._element).trigger(Event.SHOWN); }; var capitalizedDimension=dimension[0].toUpperCase() + dimension.slice(1); var scrollSize="scroll" + capitalizedDimension; var transitionDuration=Util.getTransitionDurationFromElement(this._element); $$$1(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration); this._element.style[dimension]=this._element[scrollSize] + "px"; }; _proto.hide=function hide(){ var _this2=this; if(this._isTransitioning||!$$$1(this._element).hasClass(ClassName.SHOW)){ return; } var startEvent=$$$1.Event(Event.HIDE); $$$1(this._element).trigger(startEvent); if(startEvent.isDefaultPrevented()){ return; } var dimension=this._getDimension(); this._element.style[dimension]=this._element.getBoundingClientRect()[dimension] + "px"; Util.reflow(this._element); $$$1(this._element).addClass(ClassName.COLLAPSING).removeClass(ClassName.COLLAPSE).removeClass(ClassName.SHOW); var triggerArrayLength=this._triggerArray.length; if(triggerArrayLength > 0){ for (var i=0; i < triggerArrayLength; i++){ var trigger=this._triggerArray[i]; var selector=Util.getSelectorFromElement(trigger); if(selector!==null){ var $elem=$$$1([].slice.call(document.querySelectorAll(selector))); if(!$elem.hasClass(ClassName.SHOW)){ $$$1(trigger).addClass(ClassName.COLLAPSED).attr('aria-expanded', false); }} }} this.setTransitioning(true); var complete=function complete(){ _this2.setTransitioning(false); $$$1(_this2._element).removeClass(ClassName.COLLAPSING).addClass(ClassName.COLLAPSE).trigger(Event.HIDDEN); }; this._element.style[dimension]=''; var transitionDuration=Util.getTransitionDurationFromElement(this._element); $$$1(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration); }; _proto.setTransitioning=function setTransitioning(isTransitioning){ this._isTransitioning=isTransitioning; }; _proto.dispose=function dispose(){ $$$1.removeData(this._element, DATA_KEY); this._config=null; this._parent=null; this._element=null; this._triggerArray=null; this._isTransitioning=null; }; _proto._getConfig=function _getConfig(config){ config=_objectSpread({}, Default, config); config.toggle=Boolean(config.toggle); Util.typeCheckConfig(NAME, config, DefaultType); return config; }; _proto._getDimension=function _getDimension(){ var hasWidth=$$$1(this._element).hasClass(Dimension.WIDTH); return hasWidth ? Dimension.WIDTH:Dimension.HEIGHT; }; _proto._getParent=function _getParent(){ var _this3=this; var parent=null; if(Util.isElement(this._config.parent)){ parent=this._config.parent; if(typeof this._config.parent.jquery!=='undefined'){ parent=this._config.parent[0]; }}else{ parent=document.querySelector(this._config.parent); } var selector="[data-toggle=\"collapse\"][data-parent=\"" + this._config.parent + "\"]"; var children=[].slice.call(parent.querySelectorAll(selector)); $$$1(children).each(function (i, element){ _this3._addAriaAndCollapsedClass(Collapse._getTargetFromElement(element), [element]); }); return parent; }; _proto._addAriaAndCollapsedClass=function _addAriaAndCollapsedClass(element, triggerArray){ if(element){ var isOpen=$$$1(element).hasClass(ClassName.SHOW); if(triggerArray.length){ $$$1(triggerArray).toggleClass(ClassName.COLLAPSED, !isOpen).attr('aria-expanded', isOpen); }} }; Collapse._getTargetFromElement=function _getTargetFromElement(element){ var selector=Util.getSelectorFromElement(element); return selector ? document.querySelector(selector):null; }; Collapse._jQueryInterface=function _jQueryInterface(config){ return this.each(function (){ var $this=$$$1(this); var data=$this.data(DATA_KEY); var _config=_objectSpread({}, Default, $this.data(), typeof config==='object'&&config ? config:{}); if(!data&&_config.toggle&&/show|hide/.test(config)){ _config.toggle=false; } if(!data){ data=new Collapse(this, _config); $this.data(DATA_KEY, data); } if(typeof config==='string'){ if(typeof data[config]==='undefined'){ throw new TypeError("No method named \"" + config + "\""); } data[config](); }}); }; _createClass(Collapse, null, [{ key: "VERSION", get: function get(){ return VERSION; }}, { key: "Default", get: function get(){ return Default; }}]); return Collapse; }(); $$$1(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event){ if(event.currentTarget.tagName==='A'){ event.preventDefault(); } var $trigger=$$$1(this); var selector=Util.getSelectorFromElement(this); var selectors=[].slice.call(document.querySelectorAll(selector)); $$$1(selectors).each(function (){ var $target=$$$1(this); var data=$target.data(DATA_KEY); var config=data ? 'toggle':$trigger.data(); Collapse._jQueryInterface.call($target, config); }); }); $$$1.fn[NAME]=Collapse._jQueryInterface; $$$1.fn[NAME].Constructor=Collapse; $$$1.fn[NAME].noConflict=function (){ $$$1.fn[NAME]=JQUERY_NO_CONFLICT; return Collapse._jQueryInterface; }; return Collapse; }($); var Dropdown=function ($$$1){ var NAME='dropdown'; var VERSION='4.1.3'; var DATA_KEY='bs.dropdown'; var EVENT_KEY="." + DATA_KEY; var DATA_API_KEY='.data-api'; var JQUERY_NO_CONFLICT=$$$1.fn[NAME]; var ESCAPE_KEYCODE=27; var SPACE_KEYCODE=32; var TAB_KEYCODE=9; var ARROW_UP_KEYCODE=38; var ARROW_DOWN_KEYCODE=40; var RIGHT_MOUSE_BUTTON_WHICH=3; var REGEXP_KEYDOWN=new RegExp(ARROW_UP_KEYCODE + "|" + ARROW_DOWN_KEYCODE + "|" + ESCAPE_KEYCODE); var Event={ HIDE: "hide" + EVENT_KEY, HIDDEN: "hidden" + EVENT_KEY, SHOW: "show" + EVENT_KEY, SHOWN: "shown" + EVENT_KEY, CLICK: "click" + EVENT_KEY, CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY, KEYDOWN_DATA_API: "keydown" + EVENT_KEY + DATA_API_KEY, KEYUP_DATA_API: "keyup" + EVENT_KEY + DATA_API_KEY }; var ClassName={ DISABLED: 'disabled', SHOW: 'show', DROPUP: 'dropup', DROPRIGHT: 'dropright', DROPLEFT: 'dropleft', MENURIGHT: 'dropdown-menu-right', MENULEFT: 'dropdown-menu-left', POSITION_STATIC: 'position-static' }; var Selector={ DATA_TOGGLE: '[data-toggle="dropdown"]', FORM_CHILD: '.dropdown form', MENU: '.dropdown-menu', NAVBAR_NAV: '.navbar-nav', VISIBLE_ITEMS: '.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)' }; var AttachmentMap={ TOP: 'top-start', TOPEND: 'top-end', BOTTOM: 'bottom-start', BOTTOMEND: 'bottom-end', RIGHT: 'right-start', RIGHTEND: 'right-end', LEFT: 'left-start', LEFTEND: 'left-end' }; var Default={ offset: 0, flip: true, boundary: 'scrollParent', reference: 'toggle', display: 'dynamic' }; var DefaultType={ offset: '(number|string|function)', flip: 'boolean', boundary: '(string|element)', reference: '(string|element)', display: 'string' }; var Dropdown = function (){ function Dropdown(element, config){ this._element=element; this._popper=null; this._config=this._getConfig(config); this._menu=this._getMenuElement(); this._inNavbar=this._detectNavbar(); this._addEventListeners(); } var _proto=Dropdown.prototype; _proto.toggle=function toggle(){ if(this._element.disabled||$$$1(this._element).hasClass(ClassName.DISABLED)){ return; } var parent=Dropdown._getParentFromElement(this._element); var isActive=$$$1(this._menu).hasClass(ClassName.SHOW); Dropdown._clearMenus(); if(isActive){ return; } var relatedTarget={ relatedTarget: this._element }; var showEvent=$$$1.Event(Event.SHOW, relatedTarget); $$$1(parent).trigger(showEvent); if(showEvent.isDefaultPrevented()){ return; } if(!this._inNavbar){ if(typeof Popper==='undefined'){ throw new TypeError('Bootstrap dropdown require Popper.js (https://popper.js.org)'); } var referenceElement=this._element; if(this._config.reference==='parent'){ referenceElement=parent; }else if(Util.isElement(this._config.reference)){ referenceElement=this._config.reference; if(typeof this._config.reference.jquery!=='undefined'){ referenceElement=this._config.reference[0]; }} if(this._config.boundary!=='scrollParent'){ $$$1(parent).addClass(ClassName.POSITION_STATIC); } this._popper=new Popper(referenceElement, this._menu, this._getPopperConfig()); } if('ontouchstart' in document.documentElement&&$$$1(parent).closest(Selector.NAVBAR_NAV).length===0){ $$$1(document.body).children().on('mouseover', null, $$$1.noop); } this._element.focus(); this._element.setAttribute('aria-expanded', true); $$$1(this._menu).toggleClass(ClassName.SHOW); $$$1(parent).toggleClass(ClassName.SHOW).trigger($$$1.Event(Event.SHOWN, relatedTarget)); }; _proto.dispose=function dispose(){ $$$1.removeData(this._element, DATA_KEY); $$$1(this._element).off(EVENT_KEY); this._element=null; this._menu=null; if(this._popper!==null){ this._popper.destroy(); this._popper=null; }}; _proto.update=function update(){ this._inNavbar=this._detectNavbar(); if(this._popper!==null){ this._popper.scheduleUpdate(); }}; _proto._addEventListeners=function _addEventListeners(){ var _this=this; $$$1(this._element).on(Event.CLICK, function (event){ event.preventDefault(); event.stopPropagation(); _this.toggle(); }); }; _proto._getConfig=function _getConfig(config){ config=_objectSpread({}, this.constructor.Default, $$$1(this._element).data(), config); Util.typeCheckConfig(NAME, config, this.constructor.DefaultType); return config; }; _proto._getMenuElement=function _getMenuElement(){ if(!this._menu){ var parent=Dropdown._getParentFromElement(this._element); if(parent){ this._menu=parent.querySelector(Selector.MENU); }} return this._menu; }; _proto._getPlacement=function _getPlacement(){ var $parentDropdown=$$$1(this._element.parentNode); var placement=AttachmentMap.BOTTOM; if($parentDropdown.hasClass(ClassName.DROPUP)){ placement=AttachmentMap.TOP; if($$$1(this._menu).hasClass(ClassName.MENURIGHT)){ placement=AttachmentMap.TOPEND; }}else if($parentDropdown.hasClass(ClassName.DROPRIGHT)){ placement=AttachmentMap.RIGHT; }else if($parentDropdown.hasClass(ClassName.DROPLEFT)){ placement=AttachmentMap.LEFT; }else if($$$1(this._menu).hasClass(ClassName.MENURIGHT)){ placement=AttachmentMap.BOTTOMEND; } return placement; }; _proto._detectNavbar=function _detectNavbar(){ return $$$1(this._element).closest('.navbar').length > 0; }; _proto._getPopperConfig=function _getPopperConfig(){ var _this2=this; var offsetConf={}; if(typeof this._config.offset==='function'){ offsetConf.fn=function (data){ data.offsets=_objectSpread({}, data.offsets, _this2._config.offset(data.offsets)||{}); return data; };}else{ offsetConf.offset=this._config.offset; } var popperConfig={ placement: this._getPlacement(), modifiers: { offset: offsetConf, flip: { enabled: this._config.flip }, preventOverflow: { boundariesElement: this._config.boundary }} }; if(this._config.display==='static'){ popperConfig.modifiers.applyStyle={ enabled: false };} return popperConfig; }; Dropdown._jQueryInterface=function _jQueryInterface(config){ return this.each(function (){ var data=$$$1(this).data(DATA_KEY); var _config=typeof config==='object' ? config:null; if(!data){ data=new Dropdown(this, _config); $$$1(this).data(DATA_KEY, data); } if(typeof config==='string'){ if(typeof data[config]==='undefined'){ throw new TypeError("No method named \"" + config + "\""); } data[config](); }}); }; Dropdown._clearMenus=function _clearMenus(event){ if(event&&(event.which===RIGHT_MOUSE_BUTTON_WHICH||event.type==='keyup'&&event.which!==TAB_KEYCODE)){ return; } var toggles=[].slice.call(document.querySelectorAll(Selector.DATA_TOGGLE)); for (var i=0, len=toggles.length; i < len; i++){ var parent=Dropdown._getParentFromElement(toggles[i]); var context=$$$1(toggles[i]).data(DATA_KEY); var relatedTarget={ relatedTarget: toggles[i] }; if(event&&event.type==='click'){ relatedTarget.clickEvent=event; } if(!context){ continue; } var dropdownMenu=context._menu; if(!$$$1(parent).hasClass(ClassName.SHOW)){ continue; } if(event&&(event.type==='click'&&/input|textarea/i.test(event.target.tagName)||event.type==='keyup'&&event.which===TAB_KEYCODE)&&$$$1.contains(parent, event.target)){ continue; } var hideEvent=$$$1.Event(Event.HIDE, relatedTarget); $$$1(parent).trigger(hideEvent); if(hideEvent.isDefaultPrevented()){ continue; } if('ontouchstart' in document.documentElement){ $$$1(document.body).children().off('mouseover', null, $$$1.noop); } toggles[i].setAttribute('aria-expanded', 'false'); $$$1(dropdownMenu).removeClass(ClassName.SHOW); $$$1(parent).removeClass(ClassName.SHOW).trigger($$$1.Event(Event.HIDDEN, relatedTarget)); }}; Dropdown._getParentFromElement=function _getParentFromElement(element){ var parent; var selector=Util.getSelectorFromElement(element); if(selector){ parent=document.querySelector(selector); } return parent||element.parentNode; }; Dropdown._dataApiKeydownHandler=function _dataApiKeydownHandler(event){ if(/input|textarea/i.test(event.target.tagName) ? event.which===SPACE_KEYCODE||event.which!==ESCAPE_KEYCODE&&(event.which!==ARROW_DOWN_KEYCODE&&event.which!==ARROW_UP_KEYCODE||$$$1(event.target).closest(Selector.MENU).length):!REGEXP_KEYDOWN.test(event.which)){ return; } event.preventDefault(); event.stopPropagation(); if(this.disabled||$$$1(this).hasClass(ClassName.DISABLED)){ return; } var parent=Dropdown._getParentFromElement(this); var isActive=$$$1(parent).hasClass(ClassName.SHOW); if(!isActive&&(event.which!==ESCAPE_KEYCODE||event.which!==SPACE_KEYCODE)||isActive&&(event.which===ESCAPE_KEYCODE||event.which===SPACE_KEYCODE)){ if(event.which===ESCAPE_KEYCODE){ var toggle=parent.querySelector(Selector.DATA_TOGGLE); $$$1(toggle).trigger('focus'); } $$$1(this).trigger('click'); return; } var items=[].slice.call(parent.querySelectorAll(Selector.VISIBLE_ITEMS)); if(items.length===0){ return; } var index=items.indexOf(event.target); if(event.which===ARROW_UP_KEYCODE&&index > 0){ index--; } if(event.which===ARROW_DOWN_KEYCODE&&index < items.length - 1){ index++; } if(index < 0){ index=0; } items[index].focus(); }; _createClass(Dropdown, null, [{ key: "VERSION", get: function get(){ return VERSION; }}, { key: "Default", get: function get(){ return Default; }}, { key: "DefaultType", get: function get(){ return DefaultType; }}]); return Dropdown; }(); $$$1(document).on(Event.KEYDOWN_DATA_API, Selector.DATA_TOGGLE, Dropdown._dataApiKeydownHandler).on(Event.KEYDOWN_DATA_API, Selector.MENU, Dropdown._dataApiKeydownHandler).on(Event.CLICK_DATA_API + " " + Event.KEYUP_DATA_API, Dropdown._clearMenus).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event){ event.preventDefault(); event.stopPropagation(); Dropdown._jQueryInterface.call($$$1(this), 'toggle'); }).on(Event.CLICK_DATA_API, Selector.FORM_CHILD, function (e){ e.stopPropagation(); }); $$$1.fn[NAME]=Dropdown._jQueryInterface; $$$1.fn[NAME].Constructor=Dropdown; $$$1.fn[NAME].noConflict=function (){ $$$1.fn[NAME]=JQUERY_NO_CONFLICT; return Dropdown._jQueryInterface; }; return Dropdown; }($, Popper); var Modal=function ($$$1){ var NAME='modal'; var VERSION='4.1.3'; var DATA_KEY='bs.modal'; var EVENT_KEY="." + DATA_KEY; var DATA_API_KEY='.data-api'; var JQUERY_NO_CONFLICT=$$$1.fn[NAME]; var ESCAPE_KEYCODE=27; var Default={ backdrop: true, keyboard: true, focus: true, show: true }; var DefaultType={ backdrop: '(boolean|string)', keyboard: 'boolean', focus: 'boolean', show: 'boolean' }; var Event={ HIDE: "hide" + EVENT_KEY, HIDDEN: "hidden" + EVENT_KEY, SHOW: "show" + EVENT_KEY, SHOWN: "shown" + EVENT_KEY, FOCUSIN: "focusin" + EVENT_KEY, RESIZE: "resize" + EVENT_KEY, CLICK_DISMISS: "click.dismiss" + EVENT_KEY, KEYDOWN_DISMISS: "keydown.dismiss" + EVENT_KEY, MOUSEUP_DISMISS: "mouseup.dismiss" + EVENT_KEY, MOUSEDOWN_DISMISS: "mousedown.dismiss" + EVENT_KEY, CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY }; var ClassName={ SCROLLBAR_MEASURER: 'modal-scrollbar-measure', BACKDROP: 'modal-backdrop', OPEN: 'modal-open', FADE: 'fade', SHOW: 'show' }; var Selector={ DIALOG: '.modal-dialog', DATA_TOGGLE: '[data-toggle="modal"]', DATA_DISMISS: '[data-dismiss="modal"]', FIXED_CONTENT: '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top', STICKY_CONTENT: '.sticky-top' }; var Modal = function (){ function Modal(element, config){ this._config=this._getConfig(config); this._element=element; this._dialog=element.querySelector(Selector.DIALOG); this._backdrop=null; this._isShown=false; this._isBodyOverflowing=false; this._ignoreBackdropClick=false; this._scrollbarWidth=0; } var _proto=Modal.prototype; _proto.toggle=function toggle(relatedTarget){ return this._isShown ? this.hide():this.show(relatedTarget); }; _proto.show=function show(relatedTarget){ var _this=this; if(this._isTransitioning||this._isShown){ return; } if($$$1(this._element).hasClass(ClassName.FADE)){ this._isTransitioning=true; } var showEvent=$$$1.Event(Event.SHOW, { relatedTarget: relatedTarget }); $$$1(this._element).trigger(showEvent); if(this._isShown||showEvent.isDefaultPrevented()){ return; } this._isShown=true; this._checkScrollbar(); this._setScrollbar(); this._adjustDialog(); $$$1(document.body).addClass(ClassName.OPEN); this._setEscapeEvent(); this._setResizeEvent(); $$$1(this._element).on(Event.CLICK_DISMISS, Selector.DATA_DISMISS, function (event){ return _this.hide(event); }); $$$1(this._dialog).on(Event.MOUSEDOWN_DISMISS, function (){ $$$1(_this._element).one(Event.MOUSEUP_DISMISS, function (event){ if($$$1(event.target).is(_this._element)){ _this._ignoreBackdropClick=true; }}); }); this._showBackdrop(function (){ return _this._showElement(relatedTarget); }); }; _proto.hide=function hide(event){ var _this2=this; if(event){ event.preventDefault(); } if(this._isTransitioning||!this._isShown){ return; } var hideEvent=$$$1.Event(Event.HIDE); $$$1(this._element).trigger(hideEvent); if(!this._isShown||hideEvent.isDefaultPrevented()){ return; } this._isShown=false; var transition=$$$1(this._element).hasClass(ClassName.FADE); if(transition){ this._isTransitioning=true; } this._setEscapeEvent(); this._setResizeEvent(); $$$1(document).off(Event.FOCUSIN); $$$1(this._element).removeClass(ClassName.SHOW); $$$1(this._element).off(Event.CLICK_DISMISS); $$$1(this._dialog).off(Event.MOUSEDOWN_DISMISS); if(transition){ var transitionDuration=Util.getTransitionDurationFromElement(this._element); $$$1(this._element).one(Util.TRANSITION_END, function (event){ return _this2._hideModal(event); }).emulateTransitionEnd(transitionDuration); }else{ this._hideModal(); }}; _proto.dispose=function dispose(){ $$$1.removeData(this._element, DATA_KEY); $$$1(window, document, this._element, this._backdrop).off(EVENT_KEY); this._config=null; this._element=null; this._dialog=null; this._backdrop=null; this._isShown=null; this._isBodyOverflowing=null; this._ignoreBackdropClick=null; this._scrollbarWidth=null; }; _proto.handleUpdate=function handleUpdate(){ this._adjustDialog(); }; _proto._getConfig=function _getConfig(config){ config=_objectSpread({}, Default, config); Util.typeCheckConfig(NAME, config, DefaultType); return config; }; _proto._showElement=function _showElement(relatedTarget){ var _this3=this; var transition=$$$1(this._element).hasClass(ClassName.FADE); if(!this._element.parentNode||this._element.parentNode.nodeType!==Node.ELEMENT_NODE){ document.body.appendChild(this._element); } this._element.style.display='block'; this._element.removeAttribute('aria-hidden'); this._element.scrollTop=0; if(transition){ Util.reflow(this._element); } $$$1(this._element).addClass(ClassName.SHOW); if(this._config.focus){ this._enforceFocus(); } var shownEvent=$$$1.Event(Event.SHOWN, { relatedTarget: relatedTarget }); var transitionComplete=function transitionComplete(){ if(_this3._config.focus){ _this3._element.focus(); } _this3._isTransitioning=false; $$$1(_this3._element).trigger(shownEvent); }; if(transition){ var transitionDuration=Util.getTransitionDurationFromElement(this._element); $$$1(this._dialog).one(Util.TRANSITION_END, transitionComplete).emulateTransitionEnd(transitionDuration); }else{ transitionComplete(); }}; _proto._enforceFocus=function _enforceFocus(){ var _this4=this; $$$1(document).off(Event.FOCUSIN) .on(Event.FOCUSIN, function (event){ if(document!==event.target&&_this4._element!==event.target&&$$$1(_this4._element).has(event.target).length===0){ _this4._element.focus(); }}); }; _proto._setEscapeEvent=function _setEscapeEvent(){ var _this5=this; if(this._isShown&&this._config.keyboard){ $$$1(this._element).on(Event.KEYDOWN_DISMISS, function (event){ if(event.which===ESCAPE_KEYCODE){ event.preventDefault(); _this5.hide(); }}); }else if(!this._isShown){ $$$1(this._element).off(Event.KEYDOWN_DISMISS); }}; _proto._setResizeEvent=function _setResizeEvent(){ var _this6=this; if(this._isShown){ $$$1(window).on(Event.RESIZE, function (event){ return _this6.handleUpdate(event); }); }else{ $$$1(window).off(Event.RESIZE); }}; _proto._hideModal=function _hideModal(){ var _this7=this; this._element.style.display='none'; this._element.setAttribute('aria-hidden', true); this._isTransitioning=false; this._showBackdrop(function (){ $$$1(document.body).removeClass(ClassName.OPEN); _this7._resetAdjustments(); _this7._resetScrollbar(); $$$1(_this7._element).trigger(Event.HIDDEN); }); }; _proto._removeBackdrop=function _removeBackdrop(){ if(this._backdrop){ $$$1(this._backdrop).remove(); this._backdrop=null; }}; _proto._showBackdrop=function _showBackdrop(callback){ var _this8=this; var animate=$$$1(this._element).hasClass(ClassName.FADE) ? ClassName.FADE:''; if(this._isShown&&this._config.backdrop){ this._backdrop=document.createElement('div'); this._backdrop.className=ClassName.BACKDROP; if(animate){ this._backdrop.classList.add(animate); } $$$1(this._backdrop).appendTo(document.body); $$$1(this._element).on(Event.CLICK_DISMISS, function (event){ if(_this8._ignoreBackdropClick){ _this8._ignoreBackdropClick=false; return; } if(event.target!==event.currentTarget){ return; } if(_this8._config.backdrop==='static'){ _this8._element.focus(); }else{ _this8.hide(); }}); if(animate){ Util.reflow(this._backdrop); } $$$1(this._backdrop).addClass(ClassName.SHOW); if(!callback){ return; } if(!animate){ callback(); return; } var backdropTransitionDuration=Util.getTransitionDurationFromElement(this._backdrop); $$$1(this._backdrop).one(Util.TRANSITION_END, callback).emulateTransitionEnd(backdropTransitionDuration); }else if(!this._isShown&&this._backdrop){ $$$1(this._backdrop).removeClass(ClassName.SHOW); var callbackRemove=function callbackRemove(){ _this8._removeBackdrop(); if(callback){ callback(); }}; if($$$1(this._element).hasClass(ClassName.FADE)){ var _backdropTransitionDuration=Util.getTransitionDurationFromElement(this._backdrop); $$$1(this._backdrop).one(Util.TRANSITION_END, callbackRemove).emulateTransitionEnd(_backdropTransitionDuration); }else{ callbackRemove(); }}else if(callback){ callback(); }}; _proto._adjustDialog=function _adjustDialog(){ var isModalOverflowing=this._element.scrollHeight > document.documentElement.clientHeight; if(!this._isBodyOverflowing&&isModalOverflowing){ this._element.style.paddingLeft=this._scrollbarWidth + "px"; } if(this._isBodyOverflowing&&!isModalOverflowing){ this._element.style.paddingRight=this._scrollbarWidth + "px"; }}; _proto._resetAdjustments=function _resetAdjustments(){ this._element.style.paddingLeft=''; this._element.style.paddingRight=''; }; _proto._checkScrollbar=function _checkScrollbar(){ var rect=document.body.getBoundingClientRect(); this._isBodyOverflowing=rect.left + rect.right < window.innerWidth; this._scrollbarWidth=this._getScrollbarWidth(); }; _proto._setScrollbar=function _setScrollbar(){ var _this9=this; if(this._isBodyOverflowing){ var fixedContent=[].slice.call(document.querySelectorAll(Selector.FIXED_CONTENT)); var stickyContent=[].slice.call(document.querySelectorAll(Selector.STICKY_CONTENT)); $$$1(fixedContent).each(function (index, element){ var actualPadding=element.style.paddingRight; var calculatedPadding=$$$1(element).css('padding-right'); $$$1(element).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + _this9._scrollbarWidth + "px"); }); $$$1(stickyContent).each(function (index, element){ var actualMargin=element.style.marginRight; var calculatedMargin=$$$1(element).css('margin-right'); $$$1(element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) - _this9._scrollbarWidth + "px"); }); var actualPadding=document.body.style.paddingRight; var calculatedPadding=$$$1(document.body).css('padding-right'); $$$1(document.body).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + this._scrollbarWidth + "px"); }}; _proto._resetScrollbar=function _resetScrollbar(){ var fixedContent=[].slice.call(document.querySelectorAll(Selector.FIXED_CONTENT)); $$$1(fixedContent).each(function (index, element){ var padding=$$$1(element).data('padding-right'); $$$1(element).removeData('padding-right'); element.style.paddingRight=padding ? padding:''; }); var elements=[].slice.call(document.querySelectorAll("" + Selector.STICKY_CONTENT)); $$$1(elements).each(function (index, element){ var margin=$$$1(element).data('margin-right'); if(typeof margin!=='undefined'){ $$$1(element).css('margin-right', margin).removeData('margin-right'); }}); var padding=$$$1(document.body).data('padding-right'); $$$1(document.body).removeData('padding-right'); document.body.style.paddingRight=padding ? padding:''; }; _proto._getScrollbarWidth=function _getScrollbarWidth(){ var scrollDiv=document.createElement('div'); scrollDiv.className=ClassName.SCROLLBAR_MEASURER; document.body.appendChild(scrollDiv); var scrollbarWidth=scrollDiv.getBoundingClientRect().width - scrollDiv.clientWidth; document.body.removeChild(scrollDiv); return scrollbarWidth; }; Modal._jQueryInterface=function _jQueryInterface(config, relatedTarget){ return this.each(function (){ var data=$$$1(this).data(DATA_KEY); var _config=_objectSpread({}, Default, $$$1(this).data(), typeof config==='object'&&config ? config:{}); if(!data){ data=new Modal(this, _config); $$$1(this).data(DATA_KEY, data); } if(typeof config==='string'){ if(typeof data[config]==='undefined'){ throw new TypeError("No method named \"" + config + "\""); } data[config](relatedTarget); }else if(_config.show){ data.show(relatedTarget); }}); }; _createClass(Modal, null, [{ key: "VERSION", get: function get(){ return VERSION; }}, { key: "Default", get: function get(){ return Default; }}]); return Modal; }(); $$$1(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event){ var _this10=this; var target; var selector=Util.getSelectorFromElement(this); if(selector){ target=document.querySelector(selector); } var config=$$$1(target).data(DATA_KEY) ? 'toggle':_objectSpread({}, $$$1(target).data(), $$$1(this).data()); if(this.tagName==='A'||this.tagName==='AREA'){ event.preventDefault(); } var $target=$$$1(target).one(Event.SHOW, function (showEvent){ if(showEvent.isDefaultPrevented()){ return; } $target.one(Event.HIDDEN, function (){ if($$$1(_this10).is(':visible')){ _this10.focus(); }}); }); Modal._jQueryInterface.call($$$1(target), config, this); }); $$$1.fn[NAME]=Modal._jQueryInterface; $$$1.fn[NAME].Constructor=Modal; $$$1.fn[NAME].noConflict=function (){ $$$1.fn[NAME]=JQUERY_NO_CONFLICT; return Modal._jQueryInterface; }; return Modal; }($); var Tooltip=function ($$$1){ var NAME='tooltip'; var VERSION='4.1.3'; var DATA_KEY='bs.tooltip'; var EVENT_KEY="." + DATA_KEY; var JQUERY_NO_CONFLICT=$$$1.fn[NAME]; var CLASS_PREFIX='bs-tooltip'; var BSCLS_PREFIX_REGEX=new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g'); var DefaultType={ animation: 'boolean', template: 'string', title: '(string|element|function)', trigger: 'string', delay: '(number|object)', html: 'boolean', selector: '(string|boolean)', placement: '(string|function)', offset: '(number|string)', container: '(string|element|boolean)', fallbackPlacement: '(string|array)', boundary: '(string|element)' }; var AttachmentMap={ AUTO: 'auto', TOP: 'top', RIGHT: 'right', BOTTOM: 'bottom', LEFT: 'left' }; var Default={ animation: true, template: '

', trigger: 'hover focus', title: '', delay: 0, html: false, selector: false, placement: 'top', offset: 0, container: false, fallbackPlacement: 'flip', boundary: 'scrollParent' }; var HoverState={ SHOW: 'show', OUT: 'out' }; var Event={ HIDE: "hide" + EVENT_KEY, HIDDEN: "hidden" + EVENT_KEY, SHOW: "show" + EVENT_KEY, SHOWN: "shown" + EVENT_KEY, INSERTED: "inserted" + EVENT_KEY, CLICK: "click" + EVENT_KEY, FOCUSIN: "focusin" + EVENT_KEY, FOCUSOUT: "focusout" + EVENT_KEY, MOUSEENTER: "mouseenter" + EVENT_KEY, MOUSELEAVE: "mouseleave" + EVENT_KEY }; var ClassName={ FADE: 'fade', SHOW: 'show' }; var Selector={ TOOLTIP: '.tooltip', TOOLTIP_INNER: '.tooltip-inner', ARROW: '.arrow' }; var Trigger={ HOVER: 'hover', FOCUS: 'focus', CLICK: 'click', MANUAL: 'manual' }; var Tooltip = function (){ function Tooltip(element, config){ if(typeof Popper==='undefined'){ throw new TypeError('Bootstrap tooltips require Popper.js (https://popper.js.org)'); } this._isEnabled=true; this._timeout=0; this._hoverState=''; this._activeTrigger={}; this._popper=null; this.element=element; this.config=this._getConfig(config); this.tip=null; this._setListeners(); } var _proto=Tooltip.prototype; _proto.enable=function enable(){ this._isEnabled=true; }; _proto.disable=function disable(){ this._isEnabled=false; }; _proto.toggleEnabled=function toggleEnabled(){ this._isEnabled = !this._isEnabled; }; _proto.toggle=function toggle(event){ if(!this._isEnabled){ return; } if(event){ var dataKey=this.constructor.DATA_KEY; var context=$$$1(event.currentTarget).data(dataKey); if(!context){ context=new this.constructor(event.currentTarget, this._getDelegateConfig()); $$$1(event.currentTarget).data(dataKey, context); } context._activeTrigger.click = !context._activeTrigger.click; if(context._isWithActiveTrigger()){ context._enter(null, context); }else{ context._leave(null, context); }}else{ if($$$1(this.getTipElement()).hasClass(ClassName.SHOW)){ this._leave(null, this); return; } this._enter(null, this); }}; _proto.dispose=function dispose(){ clearTimeout(this._timeout); $$$1.removeData(this.element, this.constructor.DATA_KEY); $$$1(this.element).off(this.constructor.EVENT_KEY); $$$1(this.element).closest('.modal').off('hide.bs.modal'); if(this.tip){ $$$1(this.tip).remove(); } this._isEnabled=null; this._timeout=null; this._hoverState=null; this._activeTrigger=null; if(this._popper!==null){ this._popper.destroy(); } this._popper=null; this.element=null; this.config=null; this.tip=null; }; _proto.show=function show(){ var _this=this; if($$$1(this.element).css('display')==='none'){ throw new Error('Please use show on visible elements'); } var showEvent=$$$1.Event(this.constructor.Event.SHOW); if(this.isWithContent()&&this._isEnabled){ $$$1(this.element).trigger(showEvent); var isInTheDom=$$$1.contains(this.element.ownerDocument.documentElement, this.element); if(showEvent.isDefaultPrevented()||!isInTheDom){ return; } var tip=this.getTipElement(); var tipId=Util.getUID(this.constructor.NAME); tip.setAttribute('id', tipId); this.element.setAttribute('aria-describedby', tipId); this.setContent(); if(this.config.animation){ $$$1(tip).addClass(ClassName.FADE); } var placement=typeof this.config.placement==='function' ? this.config.placement.call(this, tip, this.element):this.config.placement; var attachment=this._getAttachment(placement); this.addAttachmentClass(attachment); var container=this.config.container===false ? document.body:$$$1(document).find(this.config.container); $$$1(tip).data(this.constructor.DATA_KEY, this); if(!$$$1.contains(this.element.ownerDocument.documentElement, this.tip)){ $$$1(tip).appendTo(container); } $$$1(this.element).trigger(this.constructor.Event.INSERTED); this._popper=new Popper(this.element, tip, { placement: attachment, modifiers: { offset: { offset: this.config.offset }, flip: { behavior: this.config.fallbackPlacement }, arrow: { element: Selector.ARROW }, preventOverflow: { boundariesElement: this.config.boundary }}, onCreate: function onCreate(data){ if(data.originalPlacement!==data.placement){ _this._handlePopperPlacementChange(data); }}, onUpdate: function onUpdate(data){ _this._handlePopperPlacementChange(data); }}); $$$1(tip).addClass(ClassName.SHOW); if('ontouchstart' in document.documentElement){ $$$1(document.body).children().on('mouseover', null, $$$1.noop); } var complete=function complete(){ if(_this.config.animation){ _this._fixTransition(); } var prevHoverState=_this._hoverState; _this._hoverState=null; $$$1(_this.element).trigger(_this.constructor.Event.SHOWN); if(prevHoverState===HoverState.OUT){ _this._leave(null, _this); }}; if($$$1(this.tip).hasClass(ClassName.FADE)){ var transitionDuration=Util.getTransitionDurationFromElement(this.tip); $$$1(this.tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration); }else{ complete(); }} }; _proto.hide=function hide(callback){ var _this2=this; var tip=this.getTipElement(); var hideEvent=$$$1.Event(this.constructor.Event.HIDE); var complete=function complete(){ if(_this2._hoverState!==HoverState.SHOW&&tip.parentNode){ tip.parentNode.removeChild(tip); } _this2._cleanTipClass(); _this2.element.removeAttribute('aria-describedby'); $$$1(_this2.element).trigger(_this2.constructor.Event.HIDDEN); if(_this2._popper!==null){ _this2._popper.destroy(); } if(callback){ callback(); }}; $$$1(this.element).trigger(hideEvent); if(hideEvent.isDefaultPrevented()){ return; } $$$1(tip).removeClass(ClassName.SHOW); if('ontouchstart' in document.documentElement){ $$$1(document.body).children().off('mouseover', null, $$$1.noop); } this._activeTrigger[Trigger.CLICK]=false; this._activeTrigger[Trigger.FOCUS]=false; this._activeTrigger[Trigger.HOVER]=false; if($$$1(this.tip).hasClass(ClassName.FADE)){ var transitionDuration=Util.getTransitionDurationFromElement(tip); $$$1(tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration); }else{ complete(); } this._hoverState=''; }; _proto.update=function update(){ if(this._popper!==null){ this._popper.scheduleUpdate(); }}; _proto.isWithContent=function isWithContent(){ return Boolean(this.getTitle()); }; _proto.addAttachmentClass=function addAttachmentClass(attachment){ $$$1(this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment); }; _proto.getTipElement=function getTipElement(){ this.tip=this.tip||$$$1(this.config.template)[0]; return this.tip; }; _proto.setContent=function setContent(){ var tip=this.getTipElement(); this.setElementContent($$$1(tip.querySelectorAll(Selector.TOOLTIP_INNER)), this.getTitle()); $$$1(tip).removeClass(ClassName.FADE + " " + ClassName.SHOW); }; _proto.setElementContent=function setElementContent($element, content){ var html=this.config.html; if(typeof content==='object'&&(content.nodeType||content.jquery)){ if(html){ if(!$$$1(content).parent().is($element)){ $element.empty().append(content); }}else{ $element.text($$$1(content).text()); }}else{ $element[html ? 'html':'text'](content); }}; _proto.getTitle=function getTitle(){ var title=this.element.getAttribute('data-original-title'); if(!title){ title=typeof this.config.title==='function' ? this.config.title.call(this.element):this.config.title; } return title; }; _proto._getAttachment=function _getAttachment(placement){ return AttachmentMap[placement.toUpperCase()]; }; _proto._setListeners=function _setListeners(){ var _this3=this; var triggers=this.config.trigger.split(' '); triggers.forEach(function (trigger){ if(trigger==='click'){ $$$1(_this3.element).on(_this3.constructor.Event.CLICK, _this3.config.selector, function (event){ return _this3.toggle(event); }); }else if(trigger!==Trigger.MANUAL){ var eventIn=trigger===Trigger.HOVER ? _this3.constructor.Event.MOUSEENTER:_this3.constructor.Event.FOCUSIN; var eventOut=trigger===Trigger.HOVER ? _this3.constructor.Event.MOUSELEAVE:_this3.constructor.Event.FOCUSOUT; $$$1(_this3.element).on(eventIn, _this3.config.selector, function (event){ return _this3._enter(event); }).on(eventOut, _this3.config.selector, function (event){ return _this3._leave(event); }); } $$$1(_this3.element).closest('.modal').on('hide.bs.modal', function (){ return _this3.hide(); }); }); if(this.config.selector){ this.config=_objectSpread({}, this.config, { trigger: 'manual', selector: '' }); }else{ this._fixTitle(); }}; _proto._fixTitle=function _fixTitle(){ var titleType=typeof this.element.getAttribute('data-original-title'); if(this.element.getAttribute('title')||titleType!=='string'){ this.element.setAttribute('data-original-title', this.element.getAttribute('title')||''); this.element.setAttribute('title', ''); }}; _proto._enter=function _enter(event, context){ var dataKey=this.constructor.DATA_KEY; context=context||$$$1(event.currentTarget).data(dataKey); if(!context){ context=new this.constructor(event.currentTarget, this._getDelegateConfig()); $$$1(event.currentTarget).data(dataKey, context); } if(event){ context._activeTrigger[event.type==='focusin' ? Trigger.FOCUS:Trigger.HOVER]=true; } if($$$1(context.getTipElement()).hasClass(ClassName.SHOW)||context._hoverState===HoverState.SHOW){ context._hoverState=HoverState.SHOW; return; } clearTimeout(context._timeout); context._hoverState=HoverState.SHOW; if(!context.config.delay||!context.config.delay.show){ context.show(); return; } context._timeout=setTimeout(function (){ if(context._hoverState===HoverState.SHOW){ context.show(); }}, context.config.delay.show); }; _proto._leave=function _leave(event, context){ var dataKey=this.constructor.DATA_KEY; context=context||$$$1(event.currentTarget).data(dataKey); if(!context){ context=new this.constructor(event.currentTarget, this._getDelegateConfig()); $$$1(event.currentTarget).data(dataKey, context); } if(event){ context._activeTrigger[event.type==='focusout' ? Trigger.FOCUS:Trigger.HOVER]=false; } if(context._isWithActiveTrigger()){ return; } clearTimeout(context._timeout); context._hoverState=HoverState.OUT; if(!context.config.delay||!context.config.delay.hide){ context.hide(); return; } context._timeout=setTimeout(function (){ if(context._hoverState===HoverState.OUT){ context.hide(); }}, context.config.delay.hide); }; _proto._isWithActiveTrigger=function _isWithActiveTrigger(){ for (var trigger in this._activeTrigger){ if(this._activeTrigger[trigger]){ return true; }} return false; }; _proto._getConfig=function _getConfig(config){ config=_objectSpread({}, this.constructor.Default, $$$1(this.element).data(), typeof config==='object'&&config ? config:{}); if(typeof config.delay==='number'){ config.delay={ show: config.delay, hide: config.delay };} if(typeof config.title==='number'){ config.title=config.title.toString(); } if(typeof config.content==='number'){ config.content=config.content.toString(); } Util.typeCheckConfig(NAME, config, this.constructor.DefaultType); return config; }; _proto._getDelegateConfig=function _getDelegateConfig(){ var config={}; if(this.config){ for (var key in this.config){ if(this.constructor.Default[key]!==this.config[key]){ config[key]=this.config[key]; }} } return config; }; _proto._cleanTipClass=function _cleanTipClass(){ var $tip=$$$1(this.getTipElement()); var tabClass=$tip.attr('class').match(BSCLS_PREFIX_REGEX); if(tabClass!==null&&tabClass.length){ $tip.removeClass(tabClass.join('')); }}; _proto._handlePopperPlacementChange=function _handlePopperPlacementChange(popperData){ var popperInstance=popperData.instance; this.tip=popperInstance.popper; this._cleanTipClass(); this.addAttachmentClass(this._getAttachment(popperData.placement)); }; _proto._fixTransition=function _fixTransition(){ var tip=this.getTipElement(); var initConfigAnimation=this.config.animation; if(tip.getAttribute('x-placement')!==null){ return; } $$$1(tip).removeClass(ClassName.FADE); this.config.animation=false; this.hide(); this.show(); this.config.animation=initConfigAnimation; }; Tooltip._jQueryInterface=function _jQueryInterface(config){ return this.each(function (){ var data=$$$1(this).data(DATA_KEY); var _config=typeof config==='object'&&config; if(!data&&/dispose|hide/.test(config)){ return; } if(!data){ data=new Tooltip(this, _config); $$$1(this).data(DATA_KEY, data); } if(typeof config==='string'){ if(typeof data[config]==='undefined'){ throw new TypeError("No method named \"" + config + "\""); } data[config](); }}); }; _createClass(Tooltip, null, [{ key: "VERSION", get: function get(){ return VERSION; }}, { key: "Default", get: function get(){ return Default; }}, { key: "NAME", get: function get(){ return NAME; }}, { key: "DATA_KEY", get: function get(){ return DATA_KEY; }}, { key: "Event", get: function get(){ return Event; }}, { key: "EVENT_KEY", get: function get(){ return EVENT_KEY; }}, { key: "DefaultType", get: function get(){ return DefaultType; }}]); return Tooltip; }(); $$$1.fn[NAME]=Tooltip._jQueryInterface; $$$1.fn[NAME].Constructor=Tooltip; $$$1.fn[NAME].noConflict=function (){ $$$1.fn[NAME]=JQUERY_NO_CONFLICT; return Tooltip._jQueryInterface; }; return Tooltip; }($, Popper); var Popover=function ($$$1){ var NAME='popover'; var VERSION='4.1.3'; var DATA_KEY='bs.popover'; var EVENT_KEY="." + DATA_KEY; var JQUERY_NO_CONFLICT=$$$1.fn[NAME]; var CLASS_PREFIX='bs-popover'; var BSCLS_PREFIX_REGEX=new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g'); var Default=_objectSpread({}, Tooltip.Default, { placement: 'right', trigger: 'click', content: '', template: '' }); var DefaultType=_objectSpread({}, Tooltip.DefaultType, { content: '(string|element|function)' }); var ClassName={ FADE: 'fade', SHOW: 'show' }; var Selector={ TITLE: '.popover-header', CONTENT: '.popover-body' }; var Event={ HIDE: "hide" + EVENT_KEY, HIDDEN: "hidden" + EVENT_KEY, SHOW: "show" + EVENT_KEY, SHOWN: "shown" + EVENT_KEY, INSERTED: "inserted" + EVENT_KEY, CLICK: "click" + EVENT_KEY, FOCUSIN: "focusin" + EVENT_KEY, FOCUSOUT: "focusout" + EVENT_KEY, MOUSEENTER: "mouseenter" + EVENT_KEY, MOUSELEAVE: "mouseleave" + EVENT_KEY }; var Popover = function (_Tooltip){ _inheritsLoose(Popover, _Tooltip); function Popover(){ return _Tooltip.apply(this, arguments)||this; } var _proto=Popover.prototype; _proto.isWithContent=function isWithContent(){ return this.getTitle()||this._getContent(); }; _proto.addAttachmentClass=function addAttachmentClass(attachment){ $$$1(this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment); }; _proto.getTipElement=function getTipElement(){ this.tip=this.tip||$$$1(this.config.template)[0]; return this.tip; }; _proto.setContent=function setContent(){ var $tip=$$$1(this.getTipElement()); this.setElementContent($tip.find(Selector.TITLE), this.getTitle()); var content=this._getContent(); if(typeof content==='function'){ content=content.call(this.element); } this.setElementContent($tip.find(Selector.CONTENT), content); $tip.removeClass(ClassName.FADE + " " + ClassName.SHOW); }; _proto._getContent=function _getContent(){ return this.element.getAttribute('data-content')||this.config.content; }; _proto._cleanTipClass=function _cleanTipClass(){ var $tip=$$$1(this.getTipElement()); var tabClass=$tip.attr('class').match(BSCLS_PREFIX_REGEX); if(tabClass!==null&&tabClass.length > 0){ $tip.removeClass(tabClass.join('')); }}; Popover._jQueryInterface=function _jQueryInterface(config){ return this.each(function (){ var data=$$$1(this).data(DATA_KEY); var _config=typeof config==='object' ? config:null; if(!data&&/destroy|hide/.test(config)){ return; } if(!data){ data=new Popover(this, _config); $$$1(this).data(DATA_KEY, data); } if(typeof config==='string'){ if(typeof data[config]==='undefined'){ throw new TypeError("No method named \"" + config + "\""); } data[config](); }}); }; _createClass(Popover, null, [{ key: "VERSION", get: function get(){ return VERSION; }}, { key: "Default", get: function get(){ return Default; }}, { key: "NAME", get: function get(){ return NAME; }}, { key: "DATA_KEY", get: function get(){ return DATA_KEY; }}, { key: "Event", get: function get(){ return Event; }}, { key: "EVENT_KEY", get: function get(){ return EVENT_KEY; }}, { key: "DefaultType", get: function get(){ return DefaultType; }}]); return Popover; }(Tooltip); $$$1.fn[NAME]=Popover._jQueryInterface; $$$1.fn[NAME].Constructor=Popover; $$$1.fn[NAME].noConflict=function (){ $$$1.fn[NAME]=JQUERY_NO_CONFLICT; return Popover._jQueryInterface; }; return Popover; }($); var ScrollSpy=function ($$$1){ var NAME='scrollspy'; var VERSION='4.1.3'; var DATA_KEY='bs.scrollspy'; var EVENT_KEY="." + DATA_KEY; var DATA_API_KEY='.data-api'; var JQUERY_NO_CONFLICT=$$$1.fn[NAME]; var Default={ offset: 10, method: 'auto', target: '' }; var DefaultType={ offset: 'number', method: 'string', target: '(string|element)' }; var Event={ ACTIVATE: "activate" + EVENT_KEY, SCROLL: "scroll" + EVENT_KEY, LOAD_DATA_API: "load" + EVENT_KEY + DATA_API_KEY }; var ClassName={ DROPDOWN_ITEM: 'dropdown-item', DROPDOWN_MENU: 'dropdown-menu', ACTIVE: 'active' }; var Selector={ DATA_SPY: '[data-spy="scroll"]', ACTIVE: '.active', NAV_LIST_GROUP: '.nav, .list-group', NAV_LINKS: '.nav-link', NAV_ITEMS: '.nav-item', LIST_ITEMS: '.list-group-item', DROPDOWN: '.dropdown', DROPDOWN_ITEMS: '.dropdown-item', DROPDOWN_TOGGLE: '.dropdown-toggle' }; var OffsetMethod={ OFFSET: 'offset', POSITION: 'position' }; var ScrollSpy = function (){ function ScrollSpy(element, config){ var _this=this; this._element=element; this._scrollElement=element.tagName==='BODY' ? window:element; this._config=this._getConfig(config); this._selector=this._config.target + " " + Selector.NAV_LINKS + "," + (this._config.target + " " + Selector.LIST_ITEMS + ",") + (this._config.target + " " + Selector.DROPDOWN_ITEMS); this._offsets=[]; this._targets=[]; this._activeTarget=null; this._scrollHeight=0; $$$1(this._scrollElement).on(Event.SCROLL, function (event){ return _this._process(event); }); this.refresh(); this._process(); } var _proto=ScrollSpy.prototype; _proto.refresh=function refresh(){ var _this2=this; var autoMethod=this._scrollElement===this._scrollElement.window ? OffsetMethod.OFFSET:OffsetMethod.POSITION; var offsetMethod=this._config.method==='auto' ? autoMethod:this._config.method; var offsetBase=offsetMethod===OffsetMethod.POSITION ? this._getScrollTop():0; this._offsets=[]; this._targets=[]; this._scrollHeight=this._getScrollHeight(); var targets=[].slice.call(document.querySelectorAll(this._selector)); targets.map(function (element){ var target; var targetSelector=Util.getSelectorFromElement(element); if(targetSelector){ target=document.querySelector(targetSelector); } if(target){ var targetBCR=target.getBoundingClientRect(); if(targetBCR.width||targetBCR.height){ return [$$$1(target)[offsetMethod]().top + offsetBase, targetSelector]; }} return null; }).filter(function (item){ return item; }).sort(function (a, b){ return a[0] - b[0]; }).forEach(function (item){ _this2._offsets.push(item[0]); _this2._targets.push(item[1]); }); }; _proto.dispose=function dispose(){ $$$1.removeData(this._element, DATA_KEY); $$$1(this._scrollElement).off(EVENT_KEY); this._element=null; this._scrollElement=null; this._config=null; this._selector=null; this._offsets=null; this._targets=null; this._activeTarget=null; this._scrollHeight=null; }; _proto._getConfig=function _getConfig(config){ config=_objectSpread({}, Default, typeof config==='object'&&config ? config:{}); if(typeof config.target!=='string'){ var id=$$$1(config.target).attr('id'); if(!id){ id=Util.getUID(NAME); $$$1(config.target).attr('id', id); } config.target="#" + id; } Util.typeCheckConfig(NAME, config, DefaultType); return config; }; _proto._getScrollTop=function _getScrollTop(){ return this._scrollElement===window ? this._scrollElement.pageYOffset:this._scrollElement.scrollTop; }; _proto._getScrollHeight=function _getScrollHeight(){ return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight, document.documentElement.scrollHeight); }; _proto._getOffsetHeight=function _getOffsetHeight(){ return this._scrollElement===window ? window.innerHeight:this._scrollElement.getBoundingClientRect().height; }; _proto._process=function _process(){ var scrollTop=this._getScrollTop() + this._config.offset; var scrollHeight=this._getScrollHeight(); var maxScroll=this._config.offset + scrollHeight - this._getOffsetHeight(); if(this._scrollHeight!==scrollHeight){ this.refresh(); } if(scrollTop >=maxScroll){ var target=this._targets[this._targets.length - 1]; if(this._activeTarget!==target){ this._activate(target); } return; } if(this._activeTarget&&scrollTop < this._offsets[0]&&this._offsets[0] > 0){ this._activeTarget=null; this._clear(); return; } var offsetLength=this._offsets.length; for (var i=offsetLength; i--;){ var isActiveTarget=this._activeTarget!==this._targets[i]&&scrollTop >=this._offsets[i]&&(typeof this._offsets[i + 1]==='undefined'||scrollTop < this._offsets[i + 1]); if(isActiveTarget){ this._activate(this._targets[i]); }} }; _proto._activate=function _activate(target){ this._activeTarget=target; this._clear(); var queries=this._selector.split(','); queries=queries.map(function (selector){ return selector + "[data-target=\"" + target + "\"]," + (selector + "[href=\"" + target + "\"]"); }); var $link=$$$1([].slice.call(document.querySelectorAll(queries.join(',')))); if($link.hasClass(ClassName.DROPDOWN_ITEM)){ $link.closest(Selector.DROPDOWN).find(Selector.DROPDOWN_TOGGLE).addClass(ClassName.ACTIVE); $link.addClass(ClassName.ACTIVE); }else{ $link.addClass(ClassName.ACTIVE); $link.parents(Selector.NAV_LIST_GROUP).prev(Selector.NAV_LINKS + ", " + Selector.LIST_ITEMS).addClass(ClassName.ACTIVE); $link.parents(Selector.NAV_LIST_GROUP).prev(Selector.NAV_ITEMS).children(Selector.NAV_LINKS).addClass(ClassName.ACTIVE); } $$$1(this._scrollElement).trigger(Event.ACTIVATE, { relatedTarget: target }); }; _proto._clear=function _clear(){ var nodes=[].slice.call(document.querySelectorAll(this._selector)); $$$1(nodes).filter(Selector.ACTIVE).removeClass(ClassName.ACTIVE); }; ScrollSpy._jQueryInterface=function _jQueryInterface(config){ return this.each(function (){ var data=$$$1(this).data(DATA_KEY); var _config=typeof config==='object'&&config; if(!data){ data=new ScrollSpy(this, _config); $$$1(this).data(DATA_KEY, data); } if(typeof config==='string'){ if(typeof data[config]==='undefined'){ throw new TypeError("No method named \"" + config + "\""); } data[config](); }}); }; _createClass(ScrollSpy, null, [{ key: "VERSION", get: function get(){ return VERSION; }}, { key: "Default", get: function get(){ return Default; }}]); return ScrollSpy; }(); $$$1(window).on(Event.LOAD_DATA_API, function (){ var scrollSpys=[].slice.call(document.querySelectorAll(Selector.DATA_SPY)); var scrollSpysLength=scrollSpys.length; for (var i=scrollSpysLength; i--;){ var $spy=$$$1(scrollSpys[i]); ScrollSpy._jQueryInterface.call($spy, $spy.data()); }}); $$$1.fn[NAME]=ScrollSpy._jQueryInterface; $$$1.fn[NAME].Constructor=ScrollSpy; $$$1.fn[NAME].noConflict=function (){ $$$1.fn[NAME]=JQUERY_NO_CONFLICT; return ScrollSpy._jQueryInterface; }; return ScrollSpy; }($); var Tab=function ($$$1){ var NAME='tab'; var VERSION='4.1.3'; var DATA_KEY='bs.tab'; var EVENT_KEY="." + DATA_KEY; var DATA_API_KEY='.data-api'; var JQUERY_NO_CONFLICT=$$$1.fn[NAME]; var Event={ HIDE: "hide" + EVENT_KEY, HIDDEN: "hidden" + EVENT_KEY, SHOW: "show" + EVENT_KEY, SHOWN: "shown" + EVENT_KEY, CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY }; var ClassName={ DROPDOWN_MENU: 'dropdown-menu', ACTIVE: 'active', DISABLED: 'disabled', FADE: 'fade', SHOW: 'show' }; var Selector={ DROPDOWN: '.dropdown', NAV_LIST_GROUP: '.nav, .list-group', ACTIVE: '.active', ACTIVE_UL: '> li > .active', DATA_TOGGLE: '[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]', DROPDOWN_TOGGLE: '.dropdown-toggle', DROPDOWN_ACTIVE_CHILD: '> .dropdown-menu .active' }; var Tab = function (){ function Tab(element){ this._element=element; } var _proto=Tab.prototype; _proto.show=function show(){ var _this=this; if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&$$$1(this._element).hasClass(ClassName.ACTIVE)||$$$1(this._element).hasClass(ClassName.DISABLED)){ return; } var target; var previous; var listElement=$$$1(this._element).closest(Selector.NAV_LIST_GROUP)[0]; var selector=Util.getSelectorFromElement(this._element); if(listElement){ var itemSelector=listElement.nodeName==='UL' ? Selector.ACTIVE_UL:Selector.ACTIVE; previous=$$$1.makeArray($$$1(listElement).find(itemSelector)); previous=previous[previous.length - 1]; } var hideEvent=$$$1.Event(Event.HIDE, { relatedTarget: this._element }); var showEvent=$$$1.Event(Event.SHOW, { relatedTarget: previous }); if(previous){ $$$1(previous).trigger(hideEvent); } $$$1(this._element).trigger(showEvent); if(showEvent.isDefaultPrevented()||hideEvent.isDefaultPrevented()){ return; } if(selector){ target=document.querySelector(selector); } this._activate(this._element, listElement); var complete=function complete(){ var hiddenEvent=$$$1.Event(Event.HIDDEN, { relatedTarget: _this._element }); var shownEvent=$$$1.Event(Event.SHOWN, { relatedTarget: previous }); $$$1(previous).trigger(hiddenEvent); $$$1(_this._element).trigger(shownEvent); }; if(target){ this._activate(target, target.parentNode, complete); }else{ complete(); }}; _proto.dispose=function dispose(){ $$$1.removeData(this._element, DATA_KEY); this._element=null; }; _proto._activate=function _activate(element, container, callback){ var _this2=this; var activeElements; if(container.nodeName==='UL'){ activeElements=$$$1(container).find(Selector.ACTIVE_UL); }else{ activeElements=$$$1(container).children(Selector.ACTIVE); } var active=activeElements[0]; var isTransitioning=callback&&active&&$$$1(active).hasClass(ClassName.FADE); var complete=function complete(){ return _this2._transitionComplete(element, active, callback); }; if(active&&isTransitioning){ var transitionDuration=Util.getTransitionDurationFromElement(active); $$$1(active).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration); }else{ complete(); }}; _proto._transitionComplete=function _transitionComplete(element, active, callback){ if(active){ $$$1(active).removeClass(ClassName.SHOW + " " + ClassName.ACTIVE); var dropdownChild=$$$1(active.parentNode).find(Selector.DROPDOWN_ACTIVE_CHILD)[0]; if(dropdownChild){ $$$1(dropdownChild).removeClass(ClassName.ACTIVE); } if(active.getAttribute('role')==='tab'){ active.setAttribute('aria-selected', false); }} $$$1(element).addClass(ClassName.ACTIVE); if(element.getAttribute('role')==='tab'){ element.setAttribute('aria-selected', true); } Util.reflow(element); $$$1(element).addClass(ClassName.SHOW); if(element.parentNode&&$$$1(element.parentNode).hasClass(ClassName.DROPDOWN_MENU)){ var dropdownElement=$$$1(element).closest(Selector.DROPDOWN)[0]; if(dropdownElement){ var dropdownToggleList=[].slice.call(dropdownElement.querySelectorAll(Selector.DROPDOWN_TOGGLE)); $$$1(dropdownToggleList).addClass(ClassName.ACTIVE); } element.setAttribute('aria-expanded', true); } if(callback){ callback(); }}; Tab._jQueryInterface=function _jQueryInterface(config){ return this.each(function (){ var $this=$$$1(this); var data=$this.data(DATA_KEY); if(!data){ data=new Tab(this); $this.data(DATA_KEY, data); } if(typeof config==='string'){ if(typeof data[config]==='undefined'){ throw new TypeError("No method named \"" + config + "\""); } data[config](); }}); }; _createClass(Tab, null, [{ key: "VERSION", get: function get(){ return VERSION; }}]); return Tab; }(); $$$1(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event){ event.preventDefault(); Tab._jQueryInterface.call($$$1(this), 'show'); }); $$$1.fn[NAME]=Tab._jQueryInterface; $$$1.fn[NAME].Constructor=Tab; $$$1.fn[NAME].noConflict=function (){ $$$1.fn[NAME]=JQUERY_NO_CONFLICT; return Tab._jQueryInterface; }; return Tab; }($); (function ($$$1){ if(typeof $$$1==='undefined'){ throw new TypeError('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.'); } var version=$$$1.fn.jquery.split(' ')[0].split('.'); var minMajor=1; var ltMajor=2; var minMinor=9; var minPatch=1; var maxMajor=4; if(version[0] < ltMajor&&version[1] < minMinor||version[0]===minMajor&&version[1]===minMinor&&version[2] < minPatch||version[0] >=maxMajor){ throw new Error('Bootstrap\'s JavaScript requires at least jQuery v1.9.1 but less than v4.0.0'); }})($); exports.Util=Util; exports.Alert=Alert; exports.Button=Button; exports.Carousel=Carousel; exports.Collapse=Collapse; exports.Dropdown=Dropdown; exports.Modal=Modal; exports.Popover=Popover; exports.Scrollspy=ScrollSpy; exports.Tab=Tab; exports.Tooltip=Tooltip; Object.defineProperty(exports, '__esModule', { value: true }); }))); !function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){function n(e){return r.raw?e:encodeURIComponent(e)}function o(e){return r.raw?e:decodeURIComponent(e)}function i(n,o){var i=r.raw?n:function(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(t," ")),r.json?JSON.parse(e):e}catch(e){}}(n);return e.isFunction(o)?o(i):i}var t=/\+/g,r=e.cookie=function(t,c,u){if(arguments.length>1&&!e.isFunction(c)){if("number"==typeof(u=e.extend({},r.defaults,u)).expires){var s=u.expires,d=u.expires=new Date;d.setMilliseconds(d.getMilliseconds()+864e5*s)}return document.cookie=[n(t),"=",function(e){return n(r.json?JSON.stringify(e):String(e))}(c),u.expires?"; expires="+u.expires.toUTCString():"",u.path?"; path="+u.path:"",u.domain?"; domain="+u.domain:"",u.secure?"; secure":""].join("")}for(var f=t?void 0:{},a=document.cookie?document.cookie.split("; "):[],p=0,l=a.length;p1||t.items.merge,o[s]=n?e*i:this._items[s].width();this._widths=o}},{filter:["items","settings"],run:function(){var e=[],i=this._items,s=this.settings,n=Math.max(2*s.items,4),o=2*Math.ceil(i.length/2),r=s.loop&&i.length?s.rewind?n:Math.max(n,o):0,a="",h="";for(r/=2;r>0;)e.push(this.normalize(e.length/2,!0)),a+=i[e[e.length-1]][0].outerHTML,e.push(this.normalize(i.length-1-(e.length-1)/2,!0)),h=i[e[e.length-1]][0].outerHTML+h,r-=1;this._clones=e,t(a).addClass("cloned").appendTo(this.$stage),t(h).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var t=this.settings.rtl?1:-1,e=this._clones.length+this._items.length,i=-1,s=0,n=0,o=[];++i",a)||this.op(e,"<",r)&&this.op(e,">",a))&&h.push(i);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+h.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],n.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=t("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(t("
",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},n.prototype.initializeItems=function(){var e=this.$element.find(".owl-item");if(e.length)return this._items=e.get().map(function(e){return t(e)}),this._mergers=this._items.map(function(){return 1}),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},n.prototype.initialize=function(){if(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")){var t,e,i;t=this.$element.find("img"),e=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:void 0,i=this.$element.children(e).width(),t.length&&i<=0&&this.preloadAutoWidthImages(t)}this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},n.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},n.prototype.setup=function(){var e=this.viewport(),i=this.options.responsive,s=-1,n=null;i?(t.each(i,function(t){t<=e&&t>s&&(s=Number(t))}),"function"==typeof(n=t.extend({},this.options,i[s])).stagePadding&&(n.stagePadding=n.stagePadding()),delete n.responsive,n.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+s))):n=t.extend({},this.options),this.trigger("change",{property:{name:"settings",value:n}}),this._breakpoint=s,this.settings=n,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},n.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},n.prototype.prepare=function(e){var i=this.trigger("prepare",{content:e});return i.data||(i.data=t("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(e)),this.trigger("prepared",{content:i.data}),i.data},n.prototype.update=function(){for(var e=0,i=this._pipe.length,s=t.proxy(function(t){return this[t]},this._invalidated),n={};e0)&&this._pipe[e].run(n),e++;this._invalidated={},!this.is("valid")&&this.enter("valid")},n.prototype.width=function(t){switch(t=t||n.Width.Default){case n.Width.Inner:case n.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},n.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},n.prototype.onThrottledResize=function(){e.clearTimeout(this.resizeTimer),this.resizeTimer=e.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},n.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.isVisible()&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))))},n.prototype.registerEventHandlers=function(){t.support.transition&&this.$stage.on(t.support.transition.end+".owl.core",t.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(e,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",t.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",t.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",t.proxy(this.onDragEnd,this)))},n.prototype.onDragStart=function(e){var s=null;3!==e.which&&(t.support.transform?s={x:(s=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","))[16===s.length?12:4],y:s[16===s.length?13:5]}:(s=this.$stage.position(),s={x:this.settings.rtl?s.left+this.$stage.width()-this.width()+this.settings.margin:s.left,y:s.top}),this.is("animating")&&(t.support.transform?this.animate(s.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===e.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=t(e.target),this._drag.stage.start=s,this._drag.stage.current=s,this._drag.pointer=this.pointer(e),t(i).on("mouseup.owl.core touchend.owl.core",t.proxy(this.onDragEnd,this)),t(i).one("mousemove.owl.core touchmove.owl.core",t.proxy(function(e){var s=this.difference(this._drag.pointer,this.pointer(e));t(i).on("mousemove.owl.core touchmove.owl.core",t.proxy(this.onDragMove,this)),Math.abs(s.x)0^this.settings.rtl?"left":"right";t(i).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==s.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(n.x,0!==s.x?o:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=o,(Math.abs(s.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},n.prototype.closest=function(e,i){var s=-1,n=this.width(),o=this.coordinates();return this.settings.freeDrag||t.each(o,t.proxy(function(t,r){return"left"===i&&e>r-30&&er-n-30&&e",void 0!==o[t+1]?o[t+1]:r-n)&&(s="left"===i?t+1:t),-1===s},this)),this.settings.loop||(this.op(e,">",o[this.minimum()])?s=e=this.minimum():this.op(e,"<",o[this.maximum()])&&(s=e=this.maximum())),s},n.prototype.animate=function(e){var i=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),i&&(this.enter("animating"),this.trigger("translate")),t.support.transform3d&&t.support.transition?this.$stage.css({transform:"translate3d("+e+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):i?this.$stage.animate({left:e+"px"},this.speed(),this.settings.fallbackEasing,t.proxy(this.onTransitionEnd,this)):this.$stage.css({left:e+"px"})},n.prototype.is=function(t){return this._states.current[t]&&this._states.current[t]>0},n.prototype.current=function(t){if(void 0===t)return this._current;if(0!==this._items.length){if(t=this.normalize(t),this._current!==t){var e=this.trigger("change",{property:{name:"position",value:t}});void 0!==e.data&&(t=this.normalize(e.data)),this._current=t,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current}},n.prototype.invalidate=function(e){return"string"===t.type(e)&&(this._invalidated[e]=!0,this.is("valid")&&this.leave("valid")),t.map(this._invalidated,function(t,e){return e})},n.prototype.reset=function(t){void 0!==(t=this.normalize(t))&&(this._speed=0,this._current=t,this.suppress(["translate","translated"]),this.animate(this.coordinates(t)),this.release(["translate","translated"]))},n.prototype.normalize=function(t,e){var i=this._items.length,s=e?0:this._clones.length;return!this.isNumeric(t)||i<1?t=void 0:(t<0||t>=i+s)&&(t=((t-s/2)%i+i)%i+s/2),t},n.prototype.relative=function(t){return t-=this._clones.length/2,this.normalize(t,!0)},n.prototype.maximum=function(t){var e,i,s,n=this.settings,o=this._coordinates.length;if(n.loop)o=this._clones.length/2+this._items.length-1;else if(n.autoWidth||n.merge){if(e=this._items.length)for(i=this._items[--e].width(),s=this.$element.width();e--&&!((i+=this._items[e].width()+this.settings.margin)>s););o=e+1}else o=n.center?this._items.length-1:this._items.length-n.items;return t&&(o-=this._clones.length/2),Math.max(o,0)},n.prototype.minimum=function(t){return t?0:this._clones.length/2},n.prototype.items=function(t){return void 0===t?this._items.slice():(t=this.normalize(t,!0),this._items[t])},n.prototype.mergers=function(t){return void 0===t?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])},n.prototype.clones=function(e){var i=this._clones.length/2,s=i+this._items.length,n=function(t){return t%2==0?s+t/2:i-(t+1)/2};return void 0===e?t.map(this._clones,function(t,e){return n(e)}):t.map(this._clones,function(t,i){return t===e?n(i):null})},n.prototype.speed=function(t){return void 0!==t&&(this._speed=t),this._speed},n.prototype.coordinates=function(e){var i,s=1,n=e-1;return void 0===e?t.map(this._coordinates,t.proxy(function(t,e){return this.coordinates(e)},this)):(this.settings.center?(this.settings.rtl&&(s=-1,n=e+1),i=this._coordinates[e],i+=(this.width()-i+(this._coordinates[n]||0))/2*s):i=this._coordinates[n]||0,i=Math.ceil(i))},n.prototype.duration=function(t,e,i){return 0===i?0:Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(i||this.settings.smartSpeed)},n.prototype.to=function(t,e){var i=this.current(),s=null,n=t-this.relative(i),o=(n>0)-(n<0),r=this._items.length,a=this.minimum(),h=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(n)>r/2&&(n+=-1*o*r),(s=(((t=i+n)-a)%r+r)%r+a)!==t&&s-n<=h&&s-n>0&&(i=s-n,t=s,this.reset(i))):t=this.settings.rewind?(t%(h+=1)+h)%h:Math.max(a,Math.min(h,t)),this.speed(this.duration(i,t,e)),this.current(t),this.isVisible()&&this.update()},n.prototype.next=function(t){t=t||!1,this.to(this.relative(this.current())+1,t)},n.prototype.prev=function(t){t=t||!1,this.to(this.relative(this.current())-1,t)},n.prototype.onTransitionEnd=function(t){if(void 0!==t&&(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},n.prototype.viewport=function(){var s;return this.options.responsiveBaseElement!==e?s=t(this.options.responsiveBaseElement).width():e.innerWidth?s=e.innerWidth:i.documentElement&&i.documentElement.clientWidth?s=i.documentElement.clientWidth:console.warn("Can not detect viewport width."),s},n.prototype.replace=function(e){this.$stage.empty(),this._items=[],e&&(e=e instanceof jQuery?e:t(e)),this.settings.nestedItemSelector&&(e=e.find("."+this.settings.nestedItemSelector)),e.filter(function(){return 1===this.nodeType}).each(t.proxy(function(t,e){e=this.prepare(e),this.$stage.append(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},n.prototype.add=function(e,i){var s=this.relative(this._current);i=void 0===i?this._items.length:this.normalize(i,!0),e=e instanceof jQuery?e:t(e),this.trigger("add",{content:e,position:i}),e=this.prepare(e),0===this._items.length||i===this._items.length?(0===this._items.length&&this.$stage.append(e),0!==this._items.length&&this._items[i-1].after(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[i].before(e),this._items.splice(i,0,e),this._mergers.splice(i,0,1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[s]&&this.reset(this._items[s].index()),this.invalidate("items"),this.trigger("added",{content:e,position:i})},n.prototype.remove=function(t){void 0!==(t=this.normalize(t,!0))&&(this.trigger("remove",{content:this._items[t],position:t}),this._items[t].remove(),this._items.splice(t,1),this._mergers.splice(t,1),this.invalidate("items"),this.trigger("removed",{content:null,position:t}))},n.prototype.preloadAutoWidthImages=function(e){e.each(t.proxy(function(e,i){this.enter("pre-loading"),i=t(i),t(new Image).one("load",t.proxy(function(t){i.attr("src",t.target.src),i.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",i.attr("src")||i.attr("data-src")||i.attr("data-src-retina"))},this))},n.prototype.destroy=function(){this.$element.off(".owl.core"),this.$stage.off(".owl.core"),t(i).off(".owl.core"),!1!==this.settings.responsive&&(e.clearTimeout(this.resizeTimer),this.off(e,"resize",this._handlers.onThrottledResize));for(var s in this._plugins)this._plugins[s].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},n.prototype.op=function(t,e,i){var s=this.settings.rtl;switch(e){case"<":return s?t>i:t":return s?ti;case">=":return s?t<=i:t>=i;case"<=":return s?t>=i:t<=i}},n.prototype.on=function(t,e,i,s){t.addEventListener?t.addEventListener(e,i,s):t.attachEvent&&t.attachEvent("on"+e,i)},n.prototype.off=function(t,e,i,s){t.removeEventListener?t.removeEventListener(e,i,s):t.detachEvent&&t.detachEvent("on"+e,i)},n.prototype.trigger=function(e,i,s,o,r){var a={item:{count:this._items.length,index:this.current()}},h=t.camelCase(t.grep(["on",e,s],function(t){return t}).join("-").toLowerCase()),l=t.Event([e,"owl",s||"carousel"].join(".").toLowerCase(),t.extend({relatedTarget:this},a,i));return this._supress[e]||(t.each(this._plugins,function(t,e){e.onTrigger&&e.onTrigger(l)}),this.register({type:n.Type.Event,name:e}),this.$element.trigger(l),this.settings&&"function"==typeof this.settings[h]&&this.settings[h].call(this,l)),l},n.prototype.enter=function(e){t.each([e].concat(this._states.tags[e]||[]),t.proxy(function(t,e){void 0===this._states.current[e]&&(this._states.current[e]=0),this._states.current[e]++},this))},n.prototype.leave=function(e){t.each([e].concat(this._states.tags[e]||[]),t.proxy(function(t,e){this._states.current[e]--},this))},n.prototype.register=function(e){if(e.type===n.Type.Event){if(t.event.special[e.name]||(t.event.special[e.name]={}),!t.event.special[e.name].owl){var i=t.event.special[e.name]._default;t.event.special[e.name]._default=function(t){return!i||!i.apply||t.namespace&&-1!==t.namespace.indexOf("owl")?t.namespace&&t.namespace.indexOf("owl")>-1:i.apply(this,arguments)},t.event.special[e.name].owl=!0}}else e.type===n.Type.State&&(this._states.tags[e.name]?this._states.tags[e.name]=this._states.tags[e.name].concat(e.tags):this._states.tags[e.name]=e.tags,this._states.tags[e.name]=t.grep(this._states.tags[e.name],t.proxy(function(i,s){return t.inArray(i,this._states.tags[e.name])===s},this)))},n.prototype.suppress=function(e){t.each(e,t.proxy(function(t,e){this._supress[e]=!0},this))},n.prototype.release=function(e){t.each(e,t.proxy(function(t,e){delete this._supress[e]},this))},n.prototype.pointer=function(t){var i={x:null,y:null};return t=t.originalEvent||t||e.event,(t=t.touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t).pageX?(i.x=t.pageX,i.y=t.pageY):(i.x=t.clientX,i.y=t.clientY),i},n.prototype.isNumeric=function(t){return!isNaN(parseFloat(t))},n.prototype.difference=function(t,e){return{x:t.x-e.x,y:t.y-e.y}},t.fn.owlCarousel=function(e){var i=Array.prototype.slice.call(arguments,1);return this.each(function(){var s=t(this),o=s.data("owl.carousel");o||(o=new n(this,"object"==typeof e&&e),s.data("owl.carousel",o),t.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(e,i){o.register({type:n.Type.Event,name:i}),o.$element.on(i+".owl.carousel.core",t.proxy(function(t){t.namespace&&t.relatedTarget!==this&&(this.suppress([i]),o[i].apply(this,[].slice.call(arguments,1)),this.release([i]))},o))})),"string"==typeof e&&"_"!==e.charAt(0)&&o[e].apply(o,i)})},t.fn.owlCarousel.Constructor=n}(window.Zepto||window.jQuery,window,document),function(t,e,i,s){var n=function(e){this._core=e,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=t.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers)};n.Defaults={autoRefresh:!0,autoRefreshInterval:500},n.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=e.setInterval(t.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},n.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},n.prototype.destroy=function(){var t,i;e.clearInterval(this._interval);for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoRefresh=n}(window.Zepto||window.jQuery,window,document),function(t,e,i,s){var n=function(e){this._core=e,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":t.proxy(function(e){if(e.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(e.property&&"position"==e.property.name||"initialized"==e.type)){var i=this._core.settings,s=i.center&&Math.ceil(i.items/2)||i.items,n=i.center&&-1*s||0,o=(e.property&&void 0!==e.property.value?e.property.value:this._core.current())+n,r=this._core.clones().length,a=t.proxy(function(t,e){this.load(e)},this);for(i.lazyLoadEager>0&&(s+=i.lazyLoadEager,i.loop&&(o-=i.lazyLoadEager,s++));n++-1||(n.each(t.proxy(function(i,s){var n,o=t(s),r=e.devicePixelRatio>1&&o.attr("data-src-retina")||o.attr("data-src")||o.attr("data-srcset");this._core.trigger("load",{element:o,url:r},"lazy"),o.is("img")?o.one("load.owl.lazy",t.proxy(function(){o.addClass("owl-lazy-loaded"),this._core.trigger("loaded",{element:o,url:r},"lazy")},this)).attr("src",r):o.is("source")?o.one("load.owl.lazy",t.proxy(function(){this._core.trigger("loaded",{element:o,url:r},"lazy")},this)).attr("srcset",r):((n=new Image).onload=t.proxy(function(){o.css({"background-image":'url("'+r+'")',opacity:"1"}),this._core.trigger("loaded",{element:o,url:r},"lazy")},this),n.src=r)},this)),this._loaded.push(s.get(0)))},n.prototype.destroy=function(){var t,e;for(t in this.handlers)this._core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Lazy=n}(window.Zepto||window.jQuery,window,document),function(t,e,i,s){var n=function(i){this._core=i,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&"position"===t.property.name&&this.update()},this),"loaded.owl.lazy":t.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&t.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=t.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var s=this;t(e).on("load",function(){s._core.settings.autoHeight&&s.update()}),t(e).resize(function(){s._core.settings.autoHeight&&(null!=s._intervalId&&clearTimeout(s._intervalId),s._intervalId=setTimeout(function(){s.update()},250))})};n.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},n.prototype.update=function(){var e=this._core._current,i=e+this._core.settings.items,s=this._core.settings.lazyLoad,n=this._core.$stage.children().toArray().slice(e,i),o=[],r=0;t.each(n,function(e,i){o.push(t(i).height())}),(r=Math.max.apply(null,o))<=1&&s&&this._previousHeight&&(r=this._previousHeight),this._previousHeight=r,this._core.$stage.parent().height(r).addClass(this._core.settings.autoHeightClass)},n.prototype.destroy=function(){var t,e;for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoHeight=n}(window.Zepto||window.jQuery,window,document),function(t,e,i,s){var n=function(e){this._core=e,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":t.proxy(function(t){t.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.video&&this.isInFullScreen()&&t.preventDefault()},this),"refreshed.owl.carousel":t.proxy(function(t){t.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":t.proxy(function(t){t.namespace&&"position"===t.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":t.proxy(function(e){if(e.namespace){var i=t(e.content).find(".owl-video");i.length&&(i.css("display","none"),this.fetch(i,t(e.content)))}},this)},this._core.options=t.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",t.proxy(function(t){this.play(t)},this))};n.Defaults={video:!1,videoHeight:!1,videoWidth:!1},n.prototype.fetch=function(t,e){var i=t.attr("data-vimeo-id")?"vimeo":t.attr("data-vzaar-id")?"vzaar":"youtube",s=t.attr("data-vimeo-id")||t.attr("data-youtube-id")||t.attr("data-vzaar-id"),n=t.attr("data-width")||this._core.settings.videoWidth,o=t.attr("data-height")||this._core.settings.videoHeight,r=t.attr("href");if(!r)throw new Error("Missing video URL.");if((s=r.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu")>-1)i="youtube";else if(s[3].indexOf("vimeo")>-1)i="vimeo";else{if(!(s[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");i="vzaar"}s=s[6],this._videos[r]={type:i,id:s,width:n,height:o},e.attr("data-video",r),this.thumbnail(t,this._videos[r])},n.prototype.thumbnail=function(e,i){var s,n,o,r=i.width&&i.height?"width:"+i.width+"px;height:"+i.height+"px;":"",a=e.find("img"),h="src",l="",c=this._core.settings,p=function(i){n='
',s=c.lazyLoad?t("
",{class:"owl-video-tn "+l,srcType:i}):t("
",{class:"owl-video-tn",style:"opacity:1;background-image:url("+i+")"}),e.after(s),e.after(n)};if(e.wrap(t("
",{class:"owl-video-wrapper",style:r})),this._core.settings.lazyLoad&&(h="data-src",l="owl-lazy"),a.length)return p(a.attr(h)),a.remove(),!1;"youtube"===i.type?(o="//img.youtube.com/vi/"+i.id+"/hqdefault.jpg",p(o)):"vimeo"===i.type?t.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){o=t[0].thumbnail_large,p(o)}}):"vzaar"===i.type&&t.ajax({type:"GET",url:"//vzaar.com/api/videos/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){o=t.framegrab_url,p(o)}})},n.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},n.prototype.play=function(e){var i,s=t(e.target).closest("."+this._core.settings.itemClass),n=this._videos[s.attr("data-video")],o=n.width||"100%",r=n.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),s=this._core.items(this._core.relative(s.index())),this._core.reset(s.index()),(i=t('')).attr("height",r),i.attr("width",o),"youtube"===n.type?i.attr("src","//www.youtube.com/embed/"+n.id+"?autoplay=1&rel=0&v="+n.id):"vimeo"===n.type?i.attr("src","//player.vimeo.com/video/"+n.id+"?autoplay=1"):"vzaar"===n.type&&i.attr("src","//view.vzaar.com/"+n.id+"/player?autoplay=true"),t(i).wrap('
').insertAfter(s.find(".owl-video")),this._playing=s.addClass("owl-video-playing"))},n.prototype.isInFullScreen=function(){var e=i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement;return e&&t(e).parent().hasClass("owl-video-frame")},n.prototype.destroy=function(){var t,e;this._core.$element.off("click.owl.video");for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Video=n}(window.Zepto||window.jQuery,window,document),function(t,e,i,s){var n=function(e){this.core=e,this.core.options=t.extend({},n.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={"change.owl.carousel":t.proxy(function(t){t.namespace&&"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":t.proxy(function(t){t.namespace&&(this.swapping="translated"==t.type)},this),"translate.owl.carousel":t.proxy(function(t){t.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};n.Defaults={animateOut:!1,animateIn:!1},n.prototype.swap=function(){if(1===this.core.settings.items&&t.support.animation&&t.support.transition){this.core.speed(0);var e,i=t.proxy(this.clear,this),s=this.core.$stage.children().eq(this.previous),n=this.core.$stage.children().eq(this.next),o=this.core.settings.animateIn,r=this.core.settings.animateOut;this.core.current()!==this.previous&&(r&&(e=this.core.coordinates(this.previous)-this.core.coordinates(this.next),s.one(t.support.animation.end,i).css({left:e+"px"}).addClass("animated owl-animated-out").addClass(r)),o&&n.one(t.support.animation.end,i).addClass("animated owl-animated-in").addClass(o))}},n.prototype.clear=function(e){t(e.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},n.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Animate=n}(window.Zepto||window.jQuery,window,document),function(t,e,i,s){var n=function(e){this._core=e,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":t.proxy(function(t){t.namespace&&"settings"===t.property.name?this._core.settings.autoplay?this.play():this.stop():t.namespace&&"position"===t.property.name&&this._paused&&(this._time=0)},this),"initialized.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":t.proxy(function(t,e,i){t.namespace&&this.play(e,i)},this),"stop.owl.autoplay":t.proxy(function(t){t.namespace&&this.stop()},this),"mouseover.owl.autoplay":t.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":t.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":t.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":t.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=t.extend({},n.Defaults,this._core.options)};n.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},n.prototype._next=function(s){this._call=e.setTimeout(t.proxy(this._next,this,s),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||i.hidden||this._core.next(s||this._core.settings.autoplaySpeed)},n.prototype.read=function(){return(new Date).getTime()-this._time},n.prototype.play=function(i,s){var n;this._core.is("rotating")||this._core.enter("rotating"),i=i||this._core.settings.autoplayTimeout,n=Math.min(this._time%(this._timeout||i),i),this._paused?(this._time=this.read(),this._paused=!1):e.clearTimeout(this._call),this._time+=this.read()%i-n,this._timeout=i,this._call=e.setTimeout(t.proxy(this._next,this,s),i-n)},n.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,e.clearTimeout(this._call),this._core.leave("rotating"))},n.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,e.clearTimeout(this._call))},n.prototype.destroy=function(){var t,e;this.stop();for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.autoplay=n}(window.Zepto||window.jQuery,window,document),function(t,e,i,s){"use strict";var n=function(e){this._core=e,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":t.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.push('
'+t(e.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"
")},this),"added.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,0,this._templates.pop())},this),"remove.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,1)},this),"changed.owl.carousel":t.proxy(function(t){t.namespace&&"position"==t.property.name&&this.draw()},this),"initialized.owl.carousel":t.proxy(function(t){t.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":t.proxy(function(t){t.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=t.extend({},n.Defaults,this._core.options),this.$element.on(this._handlers)};n.Defaults={nav:!1,navText:['',''],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},n.prototype.initialize=function(){var e,i=this._core.settings;this._controls.$relative=(i.navContainer?t(i.navContainer):t("
").addClass(i.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=t("<"+i.navElement+">").addClass(i.navClass[0]).html(i.navText[0]).prependTo(this._controls.$relative).on("click",t.proxy(function(t){this.prev(i.navSpeed)},this)),this._controls.$next=t("<"+i.navElement+">").addClass(i.navClass[1]).html(i.navText[1]).appendTo(this._controls.$relative).on("click",t.proxy(function(t){this.next(i.navSpeed)},this)),i.dotsData||(this._templates=[t('',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},a.fn.magnificPopup=function(c){A();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=u?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F="inline",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(F),w(h+"."+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C="mfp-"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("
");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var H,I="ajax",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'The content could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+"."+I,K),w("BeforeChange."+I,K)},getAjax:function(c){H&&a(document.body).addClass(H),b.updateStatus("loading");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y("ParseAjax",g),b.appendContent(a(g.data),I),c.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),""}}});var L,M=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'
',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'The image could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off("resize"+p)}),w("Resize"+d,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(L),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y("ZoomAnimationEnded")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var P="iframe",Q="//about:blank",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find("iframe");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(P,{options:{markup:'
',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+"."+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,e=".mfp-gallery";return b.direction=!0,c&&c.enabled?(f+=" mfp-gallery",w(m+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w("UpdateStatus"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):""}),w("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(s);e.click(function(){b.prev()}),f.click(function(){b.next()}),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y("LazyLoad",d),"image"===d.type&&(d.img=a('').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,y("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+U,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),A()}); !function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){"use strict";e.waitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage","cursor"],hasImageAttributes:["srcset"]},e.expr[":"].uncached=function(r){return!!e(r).is('img[src][src!=""]')&&!r.complete},e.fn.waitForImages=function(){var r,t,i,n=0,a=0,s=e.Deferred();if(e.isPlainObject(arguments[0])?(i=arguments[0].waitForAll,t=arguments[0].each,r=arguments[0].finished):1===arguments.length&&"boolean"===e.type(arguments[0])?i=arguments[0]:(r=arguments[0],t=arguments[1],i=arguments[2]),r=r||e.noop,t=t||e.noop,i=!!i,!e.isFunction(r)||!e.isFunction(t))throw new TypeError("An invalid callback was supplied.");return this.each(function(){var o=e(this),c=[],u=e.waitForImages.hasImageProperties||[],h=e.waitForImages.hasImageAttributes||[],l=/url\(\s*(['"]?)(.*?)\1\s*\)/g;i?o.find("*").addBack().each(function(){var r=e(this);r.is("img:uncached")&&c.push({src:r.attr("src"),element:r[0]}),e.each(u,function(e,t){var i,n=r.css(t);if(!n)return!0;for(;i=l.exec(n);)c.push({src:i[2],element:r[0]})}),e.each(h,function(t,i){var n,a=r.attr(i);if(!a)return!0;n=a.split(","),e.each(n,function(t,i){i=e.trim(i).split(" ")[0],c.push({src:i,element:r[0]})})})}):o.find("img:uncached").each(function(){c.push({src:this.src,element:this})}),n=c.length,a=0,0===n&&(r.call(o[0]),s.resolveWith(o[0])),e.each(c,function(i,c){var u=new Image,h="load.waitForImages error.waitForImages";e(u).one(h,function i(u){var l=[a,n,"load"==u.type];if(a++,t.apply(c.element,l),s.notifyWith(c.element,l),e(this).off(h,i),a==n)return r.call(o[0]),s.resolveWith(o[0]),!1}),u.src=c.src})}),s.promise()}}); !function(l,e){"function"==typeof define&&define.amd?define(["jquery"],e):e(l.jQuery)}(this,function(l){"use strict";function e(e){if(s.webkit&&!e)return{height:0,width:0};if(!s.data.outer){var o={border:"none","box-sizing":"content-box",height:"200px",margin:"0",padding:"0",width:"200px"};s.data.inner=l("
").css(l.extend({},o)),s.data.outer=l("
").css(l.extend({left:"-1000px",overflow:"scroll",position:"absolute",top:"-1000px"},o)).append(s.data.inner).appendTo("body")}return s.data.outer.scrollLeft(1e3).scrollTop(1e3),{height:Math.ceil(s.data.outer.offset().top-s.data.inner.offset().top||0),width:Math.ceil(s.data.outer.offset().left-s.data.inner.offset().left||0)}}function o(l){var e=l.originalEvent;return(!e.axis||e.axis!==e.HORIZONTAL_AXIS)&&!e.wheelDeltaX}var s={data:{index:0,name:"scrollbar"},macosx:/mac/i.test(navigator.platform),mobile:/android|webos|iphone|ipad|ipod|blackberry/i.test(navigator.userAgent),overlay:null,scroll:null,scrolls:[],webkit:/webkit/i.test(navigator.userAgent)&&!/edge\/\d+/i.test(navigator.userAgent)};s.scrolls.add=function(l){this.remove(l).push(l)},s.scrolls.remove=function(e){for(;l.inArray(e,this)>=0;)this.splice(l.inArray(e,this),1);return this};var r={autoScrollSize:!0,autoUpdate:!0,debug:!1,disableBodyScroll:!1,duration:200,ignoreMobile:!0,ignoreOverlay:!0,scrollStep:30,showArrows:!1,stepScrolling:!0,scrollx:null,scrolly:null,onDestroy:null,onInit:null,onScroll:null,onUpdate:null},t=function(o){s.scroll||(s.overlay=function(){var l=e(!0);return!(l.height||l.width)}(),s.scroll=e(),n(),l(window).resize(function(){var l=!1;if(s.scroll&&(s.scroll.height||s.scroll.width)){var o=e();o.height===s.scroll.height&&o.width===s.scroll.width||(s.scroll=o,l=!0)}n(l)})),this.container=o,this.namespace=".scrollbar_"+s.data.index++,this.options=l.extend({},r,window.jQueryScrollbarOptions||{}),this.scrollTo=null,this.scrollx={},this.scrolly={},o.data(s.data.name,this),s.scrolls.add(this)};t.prototype={destroy:function(){if(this.wrapper){this.container.removeData(s.data.name),s.scrolls.remove(this);var e=this.container.scrollLeft(),o=this.container.scrollTop();this.container.insertBefore(this.wrapper).css({height:"",margin:"","max-height":""}).removeClass("scroll-content scroll-scrollx_visible scroll-scrolly_visible").off(this.namespace).scrollLeft(e).scrollTop(o),this.scrollx.scroll.removeClass("scroll-scrollx_visible").find("div").andSelf().off(this.namespace),this.scrolly.scroll.removeClass("scroll-scrolly_visible").find("div").andSelf().off(this.namespace),this.wrapper.remove(),l(document).add("body").off(this.namespace),l.isFunction(this.options.onDestroy)&&this.options.onDestroy.apply(this,[this.container])}},init:function(e){var r=this,t=this.container,i=this.containerWrapper||t,n=this.namespace,c=l.extend(this.options,e||{}),a={x:this.scrollx,y:this.scrolly},d=this.wrapper,h={scrollLeft:t.scrollLeft(),scrollTop:t.scrollTop()};if(s.mobile&&c.ignoreMobile||s.overlay&&c.ignoreOverlay||s.macosx&&!s.webkit)return!1;if(d)i.css({height:"auto","margin-bottom":-1*s.scroll.height+"px","margin-right":-1*s.scroll.width+"px","max-height":""});else{if(this.wrapper=d=l("
").addClass("scroll-wrapper").addClass(t.attr("class")).css("position","absolute"==t.css("position")?"absolute":"relative").insertBefore(t).append(t),t.is("textarea")&&(this.containerWrapper=i=l("
").insertBefore(t).append(t),d.addClass("scroll-textarea")),i.addClass("scroll-content").css({height:"auto","margin-bottom":-1*s.scroll.height+"px","margin-right":-1*s.scroll.width+"px","max-height":""}),t.on("scroll"+n,function(e){l.isFunction(c.onScroll)&&c.onScroll.call(r,{maxScroll:a.y.maxScrollOffset,scroll:t.scrollTop(),size:a.y.size,visible:a.y.visible},{maxScroll:a.x.maxScrollOffset,scroll:t.scrollLeft(),size:a.x.size,visible:a.x.visible}),a.x.isVisible&&a.x.scroll.bar.css("left",t.scrollLeft()*a.x.kx+"px"),a.y.isVisible&&a.y.scroll.bar.css("top",t.scrollTop()*a.y.kx+"px")}),d.on("scroll"+n,function(){d.scrollTop(0).scrollLeft(0)}),c.disableBodyScroll){var p=function(l){o(l)?a.y.isVisible&&a.y.mousewheel(l):a.x.isVisible&&a.x.mousewheel(l)};d.on("MozMousePixelScroll"+n,p),d.on("mousewheel"+n,p),s.mobile&&d.on("touchstart"+n,function(e){var o=e.originalEvent.touches&&e.originalEvent.touches[0]||e,s={pageX:o.pageX,pageY:o.pageY},r={left:t.scrollLeft(),top:t.scrollTop()};l(document).on("touchmove"+n,function(l){var e=l.originalEvent.targetTouches&&l.originalEvent.targetTouches[0]||l;t.scrollLeft(r.left+s.pageX-e.pageX),t.scrollTop(r.top+s.pageY-e.pageY),l.preventDefault()}),l(document).on("touchend"+n,function(){l(document).off(n)})})}l.isFunction(c.onInit)&&c.onInit.apply(this,[t])}l.each(a,function(e,s){var i=null,d=1,h="x"===e?"scrollLeft":"scrollTop",p=c.scrollStep,u=function(){var l=t[h]();t[h](l+p),1==d&&l+p>=f&&(l=t[h]()),-1==d&&l+p<=f&&(l=t[h]()),t[h]()==l&&i&&i()},f=0;s.scroll||(s.scroll=r._getScroll(c["scroll"+e]).addClass("scroll-"+e),c.showArrows&&s.scroll.addClass("scroll-element_arrows_visible"),s.mousewheel=function(l){if(!s.isVisible||"x"===e&&o(l))return!0;if("y"===e&&!o(l))return a.x.mousewheel(l),!0;var i=-1*l.originalEvent.wheelDelta||l.originalEvent.detail,n=s.size-s.visible-s.offset;return(i>0&&f0)&&((f+=i)<0&&(f=0),f>n&&(f=n),r.scrollTo=r.scrollTo||{},r.scrollTo[h]=f,setTimeout(function(){r.scrollTo&&(t.stop().animate(r.scrollTo,240,"linear",function(){f=t[h]()}),r.scrollTo=null)},1)),l.preventDefault(),!1},s.scroll.on("MozMousePixelScroll"+n,s.mousewheel).on("mousewheel"+n,s.mousewheel).on("mouseenter"+n,function(){f=t[h]()}),s.scroll.find(".scroll-arrow, .scroll-element_track").on("mousedown"+n,function(o){if(1!=o.which)return!0;d=1;var n={eventOffset:o["x"===e?"pageX":"pageY"],maxScrollValue:s.size-s.visible-s.offset,scrollbarOffset:s.scroll.bar.offset()["x"===e?"left":"top"],scrollbarSize:s.scroll.bar["x"===e?"outerWidth":"outerHeight"]()},a=0,v=0;return l(this).hasClass("scroll-arrow")?(d=l(this).hasClass("scroll-arrow_more")?1:-1,p=c.scrollStep*d,f=d>0?n.maxScrollValue:0):(d=n.eventOffset>n.scrollbarOffset+n.scrollbarSize?1:n.eventOffset','
','
','
','
','
','
','
','
',"
","
",'
','
','
',"
",'
','
',"
","
","
"].join(""),simple:['
','
','
','
','
',"
","
"].join("")};return o[e]&&(e=o[e]),e||(e=o.simple),e="string"==typeof e?l(e).appendTo(this.wrapper):l(e),l.extend(e,{bar:e.find(".scroll-bar"),size:e.find(".scroll-element_size"),track:e.find(".scroll-element_track")}),e},_handleMouseDown:function(e,o){var s=this.namespace;return l(document).on("blur"+s,function(){l(document).add("body").off(s),e&&e()}),l(document).on("dragstart"+s,function(l){return l.preventDefault(),!1}),l(document).on("mouseup"+s,function(){l(document).add("body").off(s),e&&e()}),l("body").on("selectstart"+s,function(l){return l.preventDefault(),!1}),o&&o.preventDefault(),!1},_updateScroll:function(e,o){var r=this.container,t=this.containerWrapper||r,i="scroll-scroll"+e+"_visible",n="x"===e?this.scrolly:this.scrollx,c=parseInt(this.container.css("x"===e?"left":"top"),10)||0,a=this.wrapper,d=o.size,h=o.visible+c;o.isVisible=d-h>1,o.isVisible?(o.scroll.addClass(i),n.scroll.addClass(i),t.addClass(i)):(o.scroll.removeClass(i),n.scroll.removeClass(i),t.removeClass(i)),"y"===e&&(r.is("textarea")||d